mirror of https://github.com/PCSX2/pcsx2.git
Updater: Fix incorrect CoInitializeEx() call
This commit is contained in:
parent
da7284f185
commit
056a8d0274
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue