dxgi: Avoid LPVOID.

This commit is contained in:
Henri Verbeet 2013-09-16 10:57:28 +02:00 committed by Alexandre Julliard
parent e032d013d7
commit 19f028ce6d
1 changed files with 5 additions and 7 deletions

View File

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