[PATCH 5/5] wined3d: Avoid LPVOID.
Henri Verbeet
hverbeet at codeweavers.com
Thu Sep 19 03:16:49 CDT 2013
---
dlls/wined3d/wined3d_main.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c
index 58acc11..a0ecfa7 100644
--- a/dlls/wined3d/wined3d_main.c
+++ b/dlls/wined3d/wined3d_main.c
@@ -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))
--
1.7.10.4
More information about the wine-patches
mailing list