diff options
Diffstat (limited to 'src/burn/engine/engine.cpp')
-rw-r--r-- | src/burn/engine/engine.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/burn/engine/engine.cpp b/src/burn/engine/engine.cpp index 13075497..413db69b 100644 --- a/src/burn/engine/engine.cpp +++ b/src/burn/engine/engine.cpp | |||
@@ -445,7 +445,6 @@ static HRESULT RunUntrusted( | |||
445 | LPWSTR sczCachedCleanRoomBundlePath = NULL; | 445 | LPWSTR sczCachedCleanRoomBundlePath = NULL; |
446 | LPWSTR sczParameters = NULL; | 446 | LPWSTR sczParameters = NULL; |
447 | LPWSTR sczFullCommandLine = NULL; | 447 | LPWSTR sczFullCommandLine = NULL; |
448 | STARTUPINFOW si = { }; | ||
449 | PROCESS_INFORMATION pi = { }; | 448 | PROCESS_INFORMATION pi = { }; |
450 | HANDLE hFileAttached = NULL; | 449 | HANDLE hFileAttached = NULL; |
451 | HANDLE hFileSelf = NULL; | 450 | HANDLE hFileSelf = NULL; |
@@ -484,12 +483,8 @@ static HRESULT RunUntrusted( | |||
484 | hr = StrAllocFormattedSecure(&sczFullCommandLine, L"\"%ls\" %ls", wzCleanRoomBundlePath, sczParameters); | 483 | hr = StrAllocFormattedSecure(&sczFullCommandLine, L"\"%ls\" %ls", wzCleanRoomBundlePath, sczParameters); |
485 | ExitOnFailure(hr, "Failed to allocate full command-line."); | 484 | ExitOnFailure(hr, "Failed to allocate full command-line."); |
486 | 485 | ||
487 | si.cb = sizeof(si); | 486 | hr = CoreCreateProcess(wzCleanRoomBundlePath, sczFullCommandLine, TRUE, 0, NULL, static_cast<WORD>(pEngineState->command.nCmdShow), &pi); |
488 | si.wShowWindow = static_cast<WORD>(pEngineState->command.nCmdShow); | 487 | ExitOnFailure(hr, "Failed to launch clean room process: %ls", sczFullCommandLine); |
489 | if (!::CreateProcessW(wzCleanRoomBundlePath, sczFullCommandLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) | ||
490 | { | ||
491 | ExitWithLastError(hr, "Failed to launch clean room process: %ls", sczFullCommandLine); | ||
492 | } | ||
493 | 488 | ||
494 | hProcess = pi.hProcess; | 489 | hProcess = pi.hProcess; |
495 | pi.hProcess = NULL; | 490 | pi.hProcess = NULL; |