Another missing ifdef in ffmsindex

Originally committed to SVN as r2988.
This commit is contained in:
Karl Blomster 2009-05-25 16:28:28 +00:00
parent 9cb8cb25cf
commit 200b3393f9
1 changed files with 3 additions and 1 deletions

View File

@ -202,7 +202,7 @@ int main(int argc, char *argv[]) {
}
#ifdef _WIN32
if (!SUCCEEDED(CoInitializeEx(NULL, COINIT_MULTITHREADED))) {
if (FAILED(CoInitializeEx(NULL, COINIT_MULTITHREADED))) {
std::cout << "COM initialization failure" << std::endl;
return 1;
}
@ -230,6 +230,8 @@ int main(int argc, char *argv[]) {
}
FFMS_DestroyFFIndex(Index);
#ifdef _WIN32
CoUninitialize();
#endif
return 0;
}