diff options
Diffstat (limited to '')
| -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 | ||
