Commit 19f028ce authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

dxgi: Avoid LPVOID.

parent e032d013
......@@ -49,18 +49,16 @@ static void dxgi_main_cleanup(void)
DeleteCriticalSection(&dxgi_cs);
}
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
{
TRACE("fdwReason %u\n", fdwReason);
switch(fdwReason)
switch (reason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hInstDLL);
DisableThreadLibraryCalls(inst);
break;
case DLL_PROCESS_DETACH:
if (lpv) break;
if (!reserved)
dxgi_main_cleanup();
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