Commit 5bd3bfff authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Avoid LPVOID.

parent e9fbb6b0
......@@ -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))
......
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