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

This commit is contained in:
Sebastian Lackner 2015-03-01 04:45:08 +01:00 committed by Alexandre Julliard
parent 2edc31d6c0
commit fc2d81464d
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}
/***********************************************************************