diff options
author | withmorten <morten.with@gmail.com> | 2020-08-08 17:12:23 +0200 |
---|---|---|
committer | withmorten <morten.with@gmail.com> | 2020-08-08 17:12:23 +0200 |
commit | 24a1644b2a1f4cd0b20385fd29acd7be9808e027 (patch) | |
tree | 6374dfdf995525a5fa78a941ad2d99d630923a07 /src/skel/win | |
parent | remove CoUninitialize calls for FIX_BUGS (fixes PIX crash) and don't check return value for CoInitialize (diff) | |
download | re3-24a1644b2a1f4cd0b20385fd29acd7be9808e027.tar re3-24a1644b2a1f4cd0b20385fd29acd7be9808e027.tar.gz re3-24a1644b2a1f4cd0b20385fd29acd7be9808e027.tar.bz2 re3-24a1644b2a1f4cd0b20385fd29acd7be9808e027.tar.lz re3-24a1644b2a1f4cd0b20385fd29acd7be9808e027.tar.xz re3-24a1644b2a1f4cd0b20385fd29acd7be9808e027.tar.zst re3-24a1644b2a1f4cd0b20385fd29acd7be9808e027.zip |
Diffstat (limited to 'src/skel/win')
-rw-r--r-- | src/skel/win/win.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index 6d44ce80..cf4749b1 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -2227,10 +2227,9 @@ WinMain(HINSTANCE instance, case GS_INIT_INTRO_MPEG: { +#ifndef NO_MOVIES CloseClip(); - -#ifndef FIX_BUGS - CoUninitialize(); // CoUninitialize should only be called at the shutdown of a program, and by then it doesn't matter + CoUninitialize(); #endif if ( CMenuManager::OS_Language == LANG_FRENCH || CMenuManager::OS_Language == LANG_GERMAN ) @@ -2265,9 +2264,9 @@ WinMain(HINSTANCE instance, case GS_INIT_ONCE: { +#ifndef NO_MOVIES CloseClip(); -#ifndef FIX_BUGS - CoUninitialize(); // CoUninitialize should only be called at the shutdown of a program, and by then it doesn't matter + CoUninitialize(); #endif #ifdef FIX_BUGS |