Commit fb49b7fd authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

dxgi: Remove an unneeded refcount field.

parent e9e0507d
...@@ -39,7 +39,6 @@ struct dxgi_main ...@@ -39,7 +39,6 @@ struct dxgi_main
HMODULE d3d10core; HMODULE d3d10core;
struct dxgi_device_layer *device_layers; struct dxgi_device_layer *device_layers;
UINT layer_count; UINT layer_count;
LONG refcount;
}; };
static struct dxgi_main dxgi_main; static struct dxgi_main dxgi_main;
...@@ -65,11 +64,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) ...@@ -65,11 +64,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstDLL); DisableThreadLibraryCalls(hInstDLL);
++dxgi_main.refcount;
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (!--dxgi_main.refcount) dxgi_main_cleanup(); dxgi_main_cleanup();
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment