Alexandre Julliard : secur32: Don't bother to free memory at process exit.

Alexandre Julliard julliard at winehq.org
Wed May 15 14:20:00 CDT 2013


Module: wine
Branch: master
Commit: b7cdc0afde7bd592e6a6744e8728e6ca2f152331
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b7cdc0afde7bd592e6a6744e8728e6ca2f152331

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed May 15 10:26:18 2013 +0200

secur32: Don't bother to free memory at process exit.

---

 dlls/secur32/secur32.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c
index c656dee..acb09cf 100644
--- a/dlls/secur32/secur32.c
+++ b/dlls/secur32/secur32.c
@@ -1177,15 +1177,16 @@ BOOLEAN WINAPI TranslateNameW(
 /***********************************************************************
  *		DllMain (SECUR32.0)
  */
-BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
 {
-    if (fdwReason == DLL_PROCESS_ATTACH)
+    switch (reason)
     {
+    case DLL_PROCESS_ATTACH:
         DisableThreadLibraryCalls(hinstDLL);
         SECUR32_initializeProviders();
-    }
-    else if (fdwReason == DLL_PROCESS_DETACH)
-    {
+        break;
+    case DLL_PROCESS_DETACH:
+        if (reserved) break;
         SECUR32_freeProviders();
     }
 




More information about the wine-cvs mailing list