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

Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Esme Povirk 2021-04-03 13:53:32 -05:00 committed by Alexandre Julliard
parent 2330a5860a
commit 3db37dc5ae
1 changed files with 1 additions and 1 deletions

View File

@ -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;