[PATCH 5/5] dxgi: Avoid LPVOID.
Henri Verbeet
hverbeet at codeweavers.com
Mon Sep 16 03:57:28 CDT 2013
---
dlls/dxgi/dxgi_main.c | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/dlls/dxgi/dxgi_main.c b/dlls/dxgi/dxgi_main.c
index ed5f3a5..8249b88 100644
--- a/dlls/dxgi/dxgi_main.c
+++ b/dlls/dxgi/dxgi_main.c
@@ -49,19 +49,17 @@ static void dxgi_main_cleanup(void)
DeleteCriticalSection(&dxgi_cs);
}
-BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
+BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, void *reserved)
{
- TRACE("fdwReason %u\n", fdwReason);
-
- switch(fdwReason)
+ switch (reason)
{
case DLL_PROCESS_ATTACH:
- DisableThreadLibraryCalls(hInstDLL);
+ DisableThreadLibraryCalls(inst);
break;
case DLL_PROCESS_DETACH:
- if (lpv) break;
- dxgi_main_cleanup();
+ if (!reserved)
+ dxgi_main_cleanup();
break;
}
--
1.7.10.4
More information about the wine-patches
mailing list