Francois Gouget : dxgi: Remove an unneeded refcount field.
Alexandre Julliard
julliard at winehq.org
Wed Nov 16 12:46:46 CST 2011
Module: wine
Branch: master
Commit: fb49b7fd5b43d55840ecabe762ab5e99e11b37bf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fb49b7fd5b43d55840ecabe762ab5e99e11b37bf
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Nov 16 16:27:45 2011 +0100
dxgi: Remove an unneeded refcount field.
---
dlls/dxgi/dxgi_main.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c
index 2ef5072..36e3326 100644
--- a/dlls/dxgi/dxgi_main.c
+++ b/dlls/dxgi/dxgi_main.c
@@ -39,7 +39,6 @@ struct dxgi_main
HMODULE d3d10core;
struct dxgi_device_layer *device_layers;
UINT layer_count;
- LONG refcount;
};
static struct dxgi_main dxgi_main;
@@ -65,11 +64,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstDLL);
- ++dxgi_main.refcount;
break;
case DLL_PROCESS_DETACH:
- if (!--dxgi_main.refcount) dxgi_main_cleanup();
+ dxgi_main_cleanup();
break;
}
More information about the wine-cvs
mailing list