summaryrefslogtreecommitdiff
path: root/src/burn/engine/netfxchainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/burn/engine/netfxchainer.cpp')
-rw-r--r--src/burn/engine/netfxchainer.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/burn/engine/netfxchainer.cpp b/src/burn/engine/netfxchainer.cpp
index 68ddb093..86a06373 100644
--- a/src/burn/engine/netfxchainer.cpp
+++ b/src/burn/engine/netfxchainer.cpp
@@ -345,7 +345,6 @@ extern "C" HRESULT NetFxRunChainer(
345 LPWSTR sczSectionName = NULL; 345 LPWSTR sczSectionName = NULL;
346 LPWSTR sczCommand = NULL; 346 LPWSTR sczCommand = NULL;
347 NetFxChainer* pNetfxChainer = NULL; 347 NetFxChainer* pNetfxChainer = NULL;
348 STARTUPINFOW si = { };
349 PROCESS_INFORMATION pi = { }; 348 PROCESS_INFORMATION pi = { };
350 HRESULT hrInternalError = 0; 349 HRESULT hrInternalError = 0;
351 350
@@ -372,11 +371,8 @@ extern "C" HRESULT NetFxRunChainer(
372 ExitOnFailure(hr, "Failed to append user args."); 371 ExitOnFailure(hr, "Failed to append user args.");
373 } 372 }
374 373
375 si.cb = sizeof(si); 374 hr = CoreCreateProcess(wzExecutablePath, sczCommand, FALSE, CREATE_NO_WINDOW, NULL, 0, &pi);
376 if (!::CreateProcessW(wzExecutablePath, sczCommand, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &si, &pi)) 375 ExitOnFailure(hr, "Failed to CreateProcess on path: %ls", wzExecutablePath);
377 {
378 ExitWithLastError(hr, "Failed to CreateProcess on path: %ls", wzExecutablePath);
379 }
380 376
381 HANDLE handles[2] = { pi.hProcess, pNetfxChainer->hEventChaineeSend }; 377 HANDLE handles[2] = { pi.hProcess, pNetfxChainer->hEventChaineeSend };
382 378