VirtualBox

忽略:
時間撮記:
2010-11-5 下午05:20:15 (14 年 以前)
作者:
vboxsync
訊息:

ExtPack changes, related IPRT changes.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/process.cpp

    r33454 r33806  
    9292
    9393
    94 RTR3DECL(char *) RTProcGetExecutableName(char *pszExecName, size_t cchExecName)
     94RTR3DECL(char *) RTProcGetExecutablePath(char *pszExecPath, size_t cbExecPath)
    9595{
    9696    if (RT_UNLIKELY(g_szrtProcExePath[0] == '\0'))
     
    101101     */
    102102    size_t cch = g_cchrtProcExePath;
    103     if (cch < cchExecName)
     103    if (cch < cbExecPath)
    104104    {
    105         memcpy(pszExecName, g_szrtProcExePath, cch);
    106         pszExecName[cch] = '\0';
    107         return pszExecName;
     105        memcpy(pszExecPath, g_szrtProcExePath, cch);
     106        pszExecPath[cch] = '\0';
     107        return pszExecPath;
    108108    }
    109109
    110     AssertMsgFailed(("Buffer too small (%zu <= %zu)\n", cchExecName, cch));
     110    AssertMsgFailed(("Buffer too small (%zu <= %zu)\n", cbExecPath, cch));
    111111    return NULL;
    112112}
    113113
     114
     115RTR3DECL(const char *) RTProcShortName(void)
     116{
     117    return &g_szrtProcExePath[g_offrtProcName];
     118}
     119
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette