dxgi: Avoid LPVOID.
This commit is contained in:
parent
e032d013d7
commit
19f028ce6d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue