Esme Povirk : bcrypt: Don't try to unload gnutls if loading failed.

Alexandre Julliard julliard at winehq.org
Mon Apr 5 16:28:23 CDT 2021


Module: wine
Branch: master
Commit: 3db37dc5ae4e8b701c26f96fec97822b8b4da80c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3db37dc5ae4e8b701c26f96fec97822b8b4da80c

Author: Esme Povirk <esme at codeweavers.com>
Date:   Sat Apr  3 13:53:32 2021 -0500

bcrypt: Don't try to unload gnutls if loading failed.

Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/bcrypt/gnutls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/bcrypt/gnutls.c b/dlls/bcrypt/gnutls.c
index efab65b8315..2f0c62bc6da 100644
--- a/dlls/bcrypt/gnutls.c
+++ b/dlls/bcrypt/gnutls.c
@@ -1908,7 +1908,7 @@ NTSTATUS CDECL __wine_init_unix_lib( HMODULE module, DWORD reason, const void *p
         *(const struct key_funcs **)ptr_out = &key_funcs;
         break;
     case DLL_PROCESS_DETACH:
-        gnutls_uninitialize();
+        if (libgnutls_handle) gnutls_uninitialize();
         break;
     }
     return STATUS_SUCCESS;




More information about the wine-cvs mailing list