vbox的更動 33806 路徑 trunk/src/VBox/Runtime/r3/process.cpp
- 時間撮記:
- 2010-11-5 下午05:20:15 (14 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/process.cpp
r33454 r33806 92 92 93 93 94 RTR3DECL(char *) RTProcGetExecutable Name(char *pszExecName, size_t cchExecName)94 RTR3DECL(char *) RTProcGetExecutablePath(char *pszExecPath, size_t cbExecPath) 95 95 { 96 96 if (RT_UNLIKELY(g_szrtProcExePath[0] == '\0')) … … 101 101 */ 102 102 size_t cch = g_cchrtProcExePath; 103 if (cch < c chExecName)103 if (cch < cbExecPath) 104 104 { 105 memcpy(pszExec Name, g_szrtProcExePath, cch);106 pszExec Name[cch] = '\0';107 return pszExec Name;105 memcpy(pszExecPath, g_szrtProcExePath, cch); 106 pszExecPath[cch] = '\0'; 107 return pszExecPath; 108 108 } 109 109 110 AssertMsgFailed(("Buffer too small (%zu <= %zu)\n", c chExecName, cch));110 AssertMsgFailed(("Buffer too small (%zu <= %zu)\n", cbExecPath, cch)); 111 111 return NULL; 112 112 } 113 113 114 115 RTR3DECL(const char *) RTProcShortName(void) 116 { 117 return &g_szrtProcExePath[g_offrtProcName]; 118 } 119
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器