From 2edc31d6c028b9532c8e4059f585d330f532a2b8 Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sun, 1 Mar 2015 04:25:48 +0100 Subject: [PATCH] amstream: Do not allow unloading while library is still in use. --- dlls/amstream/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/amstream/main.c b/dlls/amstream/main.c index 9479053d5a9..e80c491f666 100644 --- a/dlls/amstream/main.c +++ b/dlls/amstream/main.c @@ -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; } /***********************************************************************