Skip to content

Commit

Permalink
Updater: Fix incorrect CoInitializeEx() call
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek authored Apr 5, 2024
1 parent da7284f commit 056a8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updater/Windows/WindowsUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
{
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]() {
if (com_initialized)
CoUninitialize();
Expand Down

0 comments on commit 056a8d0

Please sign in to comment.