Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
don't CoUninitialize for NO_MOVIES
- Loading branch information
Showing
with
4 additions
and
5 deletions.
-
+4
−5
src/skel/win/win.cpp
There are no files selected for viewing
|
|
@@ -2227,10 +2227,9 @@ WinMain(HINSTANCE instance, |
|
|
|
|
|
case GS_INIT_INTRO_MPEG:
|
|
case GS_INIT_INTRO_MPEG:
|
|
{
|
|
{
|
|
|
|
#ifndef NO_MOVIES
|
|
CloseClip();
|
|
CloseClip();
|
|
|
|
CoUninitialize();
|
|
#ifndef FIX_BUGS
|
|
|
|
CoUninitialize(); // CoUninitialize should only be called at the shutdown of a program, and by then it doesn't matter
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
if ( CMenuManager::OS_Language == LANG_FRENCH || CMenuManager::OS_Language == LANG_GERMAN )
|
|
if ( CMenuManager::OS_Language == LANG_FRENCH || CMenuManager::OS_Language == LANG_GERMAN )
|
|
|
@@ -2265,9 +2264,9 @@ WinMain(HINSTANCE instance, |
|
|
|
|
|
case GS_INIT_ONCE:
|
|
case GS_INIT_ONCE:
|
|
{
|
|
{
|
|
|
|
#ifndef NO_MOVIES
|
|
CloseClip();
|
|
CloseClip();
|
|
#ifndef FIX_BUGS
|
|
CoUninitialize();
|
|
CoUninitialize(); // CoUninitialize should only be called at the shutdown of a program, and by then it doesn't matter
|
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#ifdef FIX_BUGS
|
|
#ifdef FIX_BUGS
|
|
|
|