mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 08:20:20 +00:00
wmp: Don't release a NULL typelib.
This commit is contained in:
parent
710eec8fac
commit
424994c933
|
@ -89,6 +89,7 @@ static void release_typelib(void)
|
||||||
if (typeinfos[i])
|
if (typeinfos[i])
|
||||||
ITypeInfo_Release(typeinfos[i]);
|
ITypeInfo_Release(typeinfos[i]);
|
||||||
|
|
||||||
|
if (typelib)
|
||||||
ITypeLib_Release(typelib);
|
ITypeLib_Release(typelib);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,6 +155,7 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
|
||||||
wmp_instance = hInstDLL;
|
wmp_instance = hInstDLL;
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
|
if (lpv) break;
|
||||||
unregister_wmp_class();
|
unregister_wmp_class();
|
||||||
unregister_player_msg_class();
|
unregister_player_msg_class();
|
||||||
release_typelib();
|
release_typelib();
|
||||||
|
|
Loading…
Reference in a new issue