儲存庫 vbox 的更動 50062
- 時間撮記:
- 2014-1-13 下午04:22:56 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/win/process-win.cpp
r49030 r50062 645 645 } 646 646 } 647 else 648 break; 647 649 pwch += RTUtf16Len(pwch) + 1; 648 if ( *pwch)650 if (!*pwch) 649 651 break; 650 652 } … … 674 676 static int rtProcWinCreateEnvFromToken(HANDLE hToken, RTENV hEnv, PRTUTF16 *ppwszBlock) 675 677 { 678 Assert(hToken); 679 Assert(hEnv != NIL_RTENV); 680 676 681 RTLDRMOD hUserenv; 677 682 int rc = RTLdrLoadSystem("Userenv.dll", true /*fNoUnload*/, &hUserenv); … … 723 728 */ 724 729 static int rtProcWinCreateEnvFromAccount(PRTUTF16 pwszUser, PRTUTF16 pwszPassword, PRTUTF16 pwszDomain, 725 730 RTENV hEnv, PRTUTF16 *ppwszBlock) 726 731 { 727 732 HANDLE hToken; … … 867 872 phToken = fFound ? &hTokenUserDesktop : &hTokenLogon; 868 873 RTLDRMOD hUserenv; 869 intrc = RTLdrLoadSystem("Userenv.dll", true /*fNoUnload*/, &hUserenv);874 rc = RTLdrLoadSystem("Userenv.dll", true /*fNoUnload*/, &hUserenv); 870 875 if (RT_SUCCESS(rc)) 871 876 { … … 909 914 TRUE, /* fInheritHandles */ 910 915 dwCreationFlags, 911 pwszzBlock, 916 /** @todo Warn about exceeding 8192 bytes 917 * on XP and up. */ 918 pwszzBlock, /* lpEnvironment */ 912 919 NULL, /* pCurrentDirectory */ 913 920 pStartupInfo, … … 1058 1065 AssertReturn(!pszPassword || pszAsUser, VERR_INVALID_PARAMETER); 1059 1066 AssertPtrNullReturn(pszPassword, VERR_INVALID_POINTER); 1060 /** @todo search the PATH (add flag for this). */1061 1067 1062 1068 /* … … 1195 1201 PROCESS_INFORMATION ProcInfo; 1196 1202 RT_ZERO(ProcInfo); 1197 DWORD 1203 DWORD dwCreationFlags = CREATE_UNICODE_ENVIRONMENT; 1198 1204 if (fFlags & RTPROC_FLAGS_DETACHED) 1199 1205 dwCreationFlags |= DETACHED_PROCESS;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器