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

Alexandre Julliard julliard at winehq.org
Wed May 15 14:19:59 CDT 2013


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

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

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

---

 dlls/rsaenh/rsaenh.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/rsaenh/rsaenh.c b/dlls/rsaenh/rsaenh.c
index a428cc7..d0fc5be 100644
--- a/dlls/rsaenh/rsaenh.c
+++ b/dlls/rsaenh/rsaenh.c
@@ -358,7 +358,7 @@ static struct handle_table handle_table;
  *
  * Initializes and destroys the handle table for the CSP's handles.
  */
-int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
+BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID reserved)
 {
     switch (fdwReason)
     {
@@ -369,10 +369,11 @@ int WINAPI DllMain(HINSTANCE hInstance, DWORD fdwReason, PVOID pvReserved)
             break;
 
         case DLL_PROCESS_DETACH:
+            if (reserved) break;
             destroy_handle_table(&handle_table);
             break;
     }
-    return 1;
+    return TRUE;
 }
 
 /******************************************************************************




More information about the wine-cvs mailing list