wined3d: Avoid LPVOID.

This commit is contained in:
Henri Verbeet 2013-09-19 10:16:49 +02:00 committed by Alexandre Julliard
parent e9fbb6b0fd
commit 5bd3bfff99
1 changed files with 6 additions and 7 deletions

View File

@ -506,18 +506,17 @@ void wined3d_unregister_window(HWND window)
}
/* At process attach */
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
{
TRACE("WineD3D DLLMain Reason=%u\n", fdwReason);
switch (fdwReason)
switch (reason)
{
case DLL_PROCESS_ATTACH:
return wined3d_dll_init(hInstDLL);
return wined3d_dll_init(inst);
case DLL_PROCESS_DETACH:
if (lpv) break;
return wined3d_dll_destroy(hInstDLL);
if (!reserved)
return wined3d_dll_destroy(inst);
break;
case DLL_THREAD_DETACH:
if (!context_set_current(NULL))