According to MSDN a thread must call CoUninitialize once for each successful

call it has made to CoInitialize or CoInitializeEx, including any call that
returns S_FALSE. Only the CoUninitialize call corresponding to the CoInitialize
or CoInitializeEx call that initialized the library can close it.
patch by Gianluigi Tiesi, mplayer netfarm it


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24596 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2007-09-23 20:37:33 +00:00
parent 959c4cb937
commit 06facf3a90
1 changed files with 1 additions and 1 deletions

View File

@ -298,6 +298,6 @@ cleanup:
if (fourcc) free(fourcc);
if (filename) free(filename);
if (hDriver) CloseDriver(hDriver, 0, 0);
if (coinit == S_OK) CoUninitialize();
if ((coinit == S_OK) || coinit == S_FALSE) CoUninitialize();
return ret;
}