Updater: Fix incorrect CoInitializeEx() call

This commit is contained in:
Connor McLaughlin 2024-04-05 20:52:04 +10:00 committed by GitHub
parent da7284f185
commit 056a8d0274
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -421,7 +421,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
{ {
Win32ProgressCallback progress; Win32ProgressCallback progress;
const bool com_initialized = CoInitializeEx(nullptr, COINIT_MULTITHREADED); const bool com_initialized = SUCCEEDED(CoInitializeEx(nullptr, COINIT_MULTITHREADED));
const ScopedGuard com_guard = [com_initialized]() { const ScopedGuard com_guard = [com_initialized]() {
if (com_initialized) if (com_initialized)
CoUninitialize(); CoUninitialize();