summaryrefslogtreecommitdiff
path: root/src/burn/engine/uithread.cpp
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2022-09-02 16:12:26 -0500
committerSean Hall <r.sean.hall@gmail.com>2022-09-03 15:29:26 -0500
commit7728e34e48a4fdb710ecc92dd8dca833bff3993f (patch)
tree83d9a6a5068985670dc47121d400fc7c491c23ec /src/burn/engine/uithread.cpp
parenteea6121f388197435529922b3cb13d3631afb9a8 (diff)
downloadwix-7728e34e48a4fdb710ecc92dd8dca833bff3993f.tar.gz
wix-7728e34e48a4fdb710ecc92dd8dca833bff3993f.tar.bz2
wix-7728e34e48a4fdb710ecc92dd8dca833bff3993f.zip
Use elevated engine to make the restart request when it is available.
Fixes 6145
Diffstat (limited to 'src/burn/engine/uithread.cpp')
-rw-r--r--src/burn/engine/uithread.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/burn/engine/uithread.cpp b/src/burn/engine/uithread.cpp
index 673111f8..8ddd51bd 100644
--- a/src/burn/engine/uithread.cpp
+++ b/src/burn/engine/uithread.cpp
@@ -222,6 +222,16 @@ static LRESULT CALLBACK WndProc(
222 ::Sleep(250); 222 ::Sleep(250);
223 } 223 }
224 224
225 // If this is the per-machine process then close the logging pipe with the parent process.
226 if (pInfo->fElevatedEngine)
227 {
228 CoreCloseElevatedLoggingThread(pInfo->pEngineState);
229 }
230 else
231 {
232 CoreWaitForUnelevatedLoggingThread(pInfo->pEngineState->hUnelevatedLoggingThread);
233 }
234
225 LogStringWorkRaw("=======================================\r\n"); 235 LogStringWorkRaw("=======================================\r\n");
226 236
227 // Close the log to try to make sure everything is flushed to disk. 237 // Close the log to try to make sure everything is flushed to disk.