Henri Verbeet : dxgi: Avoid LPVOID.
Alexandre Julliard
julliard at winehq.org
Mon Sep 16 16:57:22 CDT 2013
Module: wine
Branch: master
Commit: 19f028ce6d0d7d0857454392d9502fa2132da1e5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=19f028ce6d0d7d0857454392d9502fa2132da1e5
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Sep 16 10:57:28 2013 +0200
dxgi: Avoid LPVOID.
---
dlls/dxgi/dxgi_main.c | 12 +++++-------
1 files 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;
}
More information about the wine-cvs
mailing list