Module: wine Branch: master Commit: 2edc31d6c028b9532c8e4059f585d330f532a2b8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2edc31d6c028b9532c8e4059f5...
Author: Sebastian Lackner sebastian@fds-team.de Date: Sun Mar 1 04:25:48 2015 +0100
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 9479053..e80c491 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; }
/***********************************************************************