vbox的更動 11836 路徑 trunk/src/VBox/Runtime/r3/process.cpp
- 時間撮記:
- 2008-8-29 下午04:52:20 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/process.cpp
r8245 r11836 37 37 #include <iprt/assert.h> 38 38 #include <iprt/err.h> 39 #include <iprt/string.h> 39 40 #include "internal/process.h" 40 41 #include "internal/thread.h" … … 94 95 } 95 96 97 98 RTR3DECL(char *) RTProcGetExecutableName(char *pszExecName, size_t cchExecName) 99 { 100 AssertReturn(g_szrtProcExePath[0] != '\0', NULL); 101 102 /* 103 * Calc the length and check if there is space before copying. 104 */ 105 size_t cch = g_cchrtProcExePath; 106 if (cch <= cchExecName) 107 { 108 memcpy(pszExecName, g_szrtProcExePath, cch); 109 pszExecName[cch] = '\0'; 110 return pszExecName; 111 } 112 113 AssertMsgFailed(("Buffer too small (%zu <= %zu)\n", cchExecName, cch)); 114 return NULL; 115 } 116
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器