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

View file

@ -506,18 +506,17 @@ void wined3d_unregister_window(HWND window)
} }
/* At process attach */ /* 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 (reason)
switch (fdwReason)
{ {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
return wined3d_dll_init(hInstDLL); return wined3d_dll_init(inst);
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (lpv) break; if (!reserved)
return wined3d_dll_destroy(hInstDLL); return wined3d_dll_destroy(inst);
break;
case DLL_THREAD_DETACH: case DLL_THREAD_DETACH:
if (!context_set_current(NULL)) if (!context_set_current(NULL))