aboutsummaryrefslogtreecommitdiff
path: root/src/burn/engine/elevation.cpp
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2025-02-11 05:21:34 -0800
committerRob Mensching <rob@firegiant.com>2025-02-11 15:49:33 -0800
commitf2e9af96142439ebfdbc1e884335bb8874f8a427 (patch)
treef3ffd15660a7041d1f70d793e2b2200ccbe42af5 /src/burn/engine/elevation.cpp
parent81fb512834c65b0a8f99c3a266879c476e382875 (diff)
downloadwix-f2e9af96142439ebfdbc1e884335bb8874f8a427.tar.gz
wix-f2e9af96142439ebfdbc1e884335bb8874f8a427.tar.bz2
wix-f2e9af96142439ebfdbc1e884335bb8874f8a427.zip
Harden Burn's BootstrapperApplication and elevated engine extraction
Fixes 8914
Diffstat (limited to 'src/burn/engine/elevation.cpp')
-rw-r--r--src/burn/engine/elevation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/burn/engine/elevation.cpp b/src/burn/engine/elevation.cpp
index 85d5a543..90e9db01 100644
--- a/src/burn/engine/elevation.cpp
+++ b/src/burn/engine/elevation.cpp
@@ -1677,8 +1677,8 @@ static HRESULT LaunchElevatedProcess(
1677 1677
1678 // Since ShellExecuteEx doesn't support passing inherited handles, don't bother with CoreAppendFileHandleSelfToCommandLine. 1678 // Since ShellExecuteEx doesn't support passing inherited handles, don't bother with CoreAppendFileHandleSelfToCommandLine.
1679 // We could fallback to using ::DuplicateHandle to inject the file handle later if necessary. 1679 // We could fallback to using ::DuplicateHandle to inject the file handle later if necessary.
1680 hr = ShelExec(pEngineState->sczBundleEngineWorkingPath, sczParameters, L"runas", NULL, SW_SHOWNA, hwndParent, &hProcess); 1680 hr = ShelExec(pEngineState->cache.sczBundleEngineWorkingPath, sczParameters, L"runas", NULL, SW_SHOWNA, hwndParent, &hProcess);
1681 ExitOnFailure(hr, "Failed to launch elevated child process: %ls", pEngineState->sczBundleEngineWorkingPath); 1681 ExitOnFailure(hr, "Failed to launch elevated child process: %ls", pEngineState->cache.sczBundleEngineWorkingPath);
1682 1682
1683 pConnection->dwProcessId = ::GetProcessId(hProcess); 1683 pConnection->dwProcessId = ::GetProcessId(hProcess);
1684 pConnection->hProcess = hProcess; 1684 pConnection->hProcess = hProcess;