diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-06-29 10:28:53 -0500 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-06-29 15:08:37 -0500 |
commit | 7cca75c8e95f129a21c33f1f4568e90e9e397f9d (patch) | |
tree | cb9890caa1ac8bc891d444b6376a5e9f997ca1e3 /src/burn/engine/elevation.cpp | |
parent | 3ff6428a068bafd74d8ec072a5fc261c33cc2019 (diff) | |
download | wix-7cca75c8e95f129a21c33f1f4568e90e9e397f9d.tar.gz wix-7cca75c8e95f129a21c33f1f4568e90e9e397f9d.tar.bz2 wix-7cca75c8e95f129a21c33f1f4568e90e9e397f9d.zip |
Add AppWaitForSingleObject/MultipleObjects, ThreadWaitForCompletion.
Diffstat (limited to 'src/burn/engine/elevation.cpp')
-rw-r--r-- | src/burn/engine/elevation.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/burn/engine/elevation.cpp b/src/burn/engine/elevation.cpp index 4a5be8ec..e165a257 100644 --- a/src/burn/engine/elevation.cpp +++ b/src/burn/engine/elevation.cpp | |||
@@ -1687,15 +1687,8 @@ static HRESULT WaitForElevatedChildCacheThread( | |||
1687 | HRESULT hr = S_OK; | 1687 | HRESULT hr = S_OK; |
1688 | DWORD dwExitCode = ERROR_SUCCESS; | 1688 | DWORD dwExitCode = ERROR_SUCCESS; |
1689 | 1689 | ||
1690 | if (WAIT_OBJECT_0 != ::WaitForSingleObject(hCacheThread, BURN_TIMEOUT)) | 1690 | hr = ThrdWaitForCompletion(hCacheThread, BURN_TIMEOUT, &dwExitCode); |
1691 | { | 1691 | ExitOnFailure(hr, "Failed to wait for cache thread to complete."); |
1692 | ExitWithLastError(hr, "Failed to wait for cache thread to terminate."); | ||
1693 | } | ||
1694 | |||
1695 | if (!::GetExitCodeThread(hCacheThread, &dwExitCode)) | ||
1696 | { | ||
1697 | ExitWithLastError(hr, "Failed to get cache thread exit code."); | ||
1698 | } | ||
1699 | 1692 | ||
1700 | AssertSz(dwExitCode == dwExpectedExitCode, "Cache thread should have exited with the expected exit code."); | 1693 | AssertSz(dwExitCode == dwExpectedExitCode, "Cache thread should have exited with the expected exit code."); |
1701 | 1694 | ||