forked from mia/Aegisub
Another missing ifdef in ffmsindex
Originally committed to SVN as r2988.
This commit is contained in:
parent
64242fd363
commit
4ba221a931
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue