amstream: Do not allow unloading while library is still in use.

oldstable
Sebastian Lackner 2015-03-01 04:25:48 +01:00 committed by Alexandre Julliard
parent 890dc4d260
commit 2edc31d6c0
1 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(amstream);
static HINSTANCE instance;
static DWORD dll_ref = 0;
/* For the moment, do nothing here. */
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
@ -205,7 +204,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
*/
HRESULT WINAPI DllCanUnloadNow(void)
{
return dll_ref != 0 ? S_FALSE : S_OK;
return S_FALSE;
}
/***********************************************************************