儲存庫 vbox 的更動 16508
- 時間撮記:
- 2009-2-4 上午11:25:49 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/posix/env-posix.cpp
r16502 r16508 101 101 /* Ok, try remove it. */ 102 102 #ifdef RT_OS_WINDOWS 103 /* Windows does not have unsetenv() */ 104 if (!putenv((char *)pszVar)) 103 /* Windows does not have unsetenv(). Clear the environment variable according to the MSN docs. */ 104 char *pszBuf; 105 int rc = RTStrAPrintf(&pszBuf, "%s=", pszVar); 106 if (RT_FAILURE(rc)) 107 return rc; 108 rc = putenv(pszBuf); 109 RTStrFree(pszBuf); 110 if (!rc) 105 111 return VINF_SUCCESS; 106 112 #else 107 /* This is the preferred function as putenv() like used 108 * above does neither work on Solaris nor on Darwin. */ 113 /* This is the preferred function as putenv() like used above does neither work on Solaris nor on Darwin. */ 109 114 if (!unsetenv((char*)pszVar)) 110 115 return VINF_SUCCESS;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器