Partial backout of Bug 453733 to fix Bug 459569

This commit is contained in:
Robert Strong 2008-10-12 16:03:38 -07:00
parent faeff8e834
commit f8a5069900

View File

@ -1097,24 +1097,14 @@ LaunchWinPostProcess(const WCHAR *appExe)
NS_tremove(dlogFile);
CopyFile(slogFile, dlogFile, FALSE);
STARTUPINFOW si = {sizeof(si), 0};
PROCESS_INFORMATION pi = {0};
BOOL ok = CreateProcessW(exefullpath,
exearg,
NULL, // no special security attributes
NULL, // no special thread attributes
FALSE, // don't inherit filehandles
0, // No special process creation flags
NULL, // inherit my environment
NULL, // use my current directory
&si,
&pi);
if (ok) {
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
}
static int argc = 2;
static WCHAR* argv[3] = {
L"argv0ignoredbywinlaunchchild",
exearg,
L"\0"
};
WinLaunchChild(exefullpath, argc, argv, 0);
}
#endif