From a37208d9a26ec7886870cc17f0726676a285bf7f Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Thu, 25 Aug 2022 15:06:04 -0500 Subject: Make sure error codes are translated correctly for per-machine packages. --- src/burn/engine/pipe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/burn/engine/pipe.cpp') diff --git a/src/burn/engine/pipe.cpp b/src/burn/engine/pipe.cpp index 19bdcaa2..5003622c 100644 --- a/src/burn/engine/pipe.cpp +++ b/src/burn/engine/pipe.cpp @@ -495,7 +495,7 @@ extern "C" HRESULT PipeTerminateChildProcess( HRESULT hrDebug = S_OK; hrDebug = CoreWaitForProcCompletion(pConnection->hProcess, 0, &dwChildExitCode); - if (E_ACCESSDENIED != hrDebug) // if the other process is elevated and we are not, then we'll get ERROR_ACCESS_DENIED. + if (E_ACCESSDENIED != hrDebug && FAILED(hrDebug)) // if the other process is elevated and we are not, then we'll get ERROR_ACCESS_DENIED. { TraceError(hrDebug, "Failed to wait for child process completion."); } -- cgit v1.2.3-55-g6feb