Sebastian Lackner : d3dxof: Do not allow unloading while library is still in use.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 2 08:51:51 CST 2015


Module: wine
Branch: master
Commit: fc2d81464d9cdeaca06a362416858ab0c5da36a9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fc2d81464d9cdeaca06a362416858ab0c5da36a9

Author: Sebastian Lackner <sebastian at fds-team.de>
Date:   Sun Mar  1 04:45:08 2015 +0100

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

---

 dlls/d3dxof/main.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/d3dxof/main.c b/dlls/d3dxof/main.c
index ddd4661..572f388 100644
--- a/dlls/d3dxof/main.c
+++ b/dlls/d3dxof/main.c
@@ -41,7 +41,6 @@
 WINE_DEFAULT_DEBUG_CHANNEL(d3dxof);
 
 static HINSTANCE instance;
-static LONG dll_ref = 0;
 
 /* For the moment, do nothing here. */
 BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
@@ -225,7 +224,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;
 }
 
 /***********************************************************************




More information about the wine-cvs mailing list