crypt32: Delete the oid and sip static critical sections when unloading the dll.

Francois Gouget fgouget at codeweavers.com
Wed Nov 16 09:33:42 CST 2011


---
 dlls/crypt32/oid.c |    2 ++
 dlls/crypt32/sip.c |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/crypt32/oid.c b/dlls/crypt32/oid.c
index e5d61f5..932bba2 100644
--- a/dlls/crypt32/oid.c
+++ b/dlls/crypt32/oid.c
@@ -92,6 +92,7 @@ static void free_function_sets(void)
         DeleteCriticalSection(&setCursor->cs);
         CryptMemFree(setCursor);
     }
+    DeleteCriticalSection(&funcSetCS);
 }
 
 /* There is no free function associated with this; therefore, the sets are
@@ -1461,6 +1462,7 @@ static void free_oid_info(void)
         list_remove(&info->entry);
         CryptMemFree(info);
     }
+    DeleteCriticalSection(&oidInfoCS);
 }
 
 /***********************************************************************
diff --git a/dlls/crypt32/sip.c b/dlls/crypt32/sip.c
index d2f55f2..e43ebc7 100644
--- a/dlls/crypt32/sip.c
+++ b/dlls/crypt32/sip.c
@@ -616,6 +616,7 @@ void crypt_sip_free(void)
         FreeLibrary(prov->info.hSIP);
         CryptMemFree(prov);
     }
+    DeleteCriticalSection(&providers_cs);
 }
 
 /* Loads the SIP for pgSubject into the global cache.  Returns FALSE if the
-- 
1.7.7.1




More information about the wine-patches mailing list