mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 05:36:35 +00:00
wined3d: Avoid LPVOID.
This commit is contained in:
parent
e9fbb6b0fd
commit
5bd3bfff99
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue