secur32: Always tell the user that libgnutls could not be loaded

Bruno Jesus 00cpxxx at gmail.com
Sun Dec 28 06:00:02 CST 2014


Ensures a message is printed in the standard output to make the
problem obvious. Will solve problems like the one in
https://bugs.winehq.org/show_bug.cgi?id=35180#c4:

"So I grepped the "strace -f" for some shared object loadings, and found
that it tries to load /usr/lib/libgnutls.so.26.

In schannel_gnutls.c a WARN should be printed when the loading fails, but it
is only printed when starting with:
  $ WINEDEBUG=+secur32 wine Launcher
  warn:secur32:schan_imp_init Failed to load libgnutls.

My system is a Debian Jessie/testing 64 bit.
Around a month ago the package libgnutls26:i386 was removed."
-------------- next part --------------
diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c
index 638b3c5..92ecf74 100644
--- a/dlls/secur32/schannel_gnutls.c
+++ b/dlls/secur32/schannel_gnutls.c
@@ -480,7 +480,7 @@ BOOL schan_imp_init(void)
     libgnutls_handle = wine_dlopen(SONAME_LIBGNUTLS, RTLD_NOW, NULL, 0);
     if (!libgnutls_handle)
     {
-        WARN("Failed to load libgnutls.\n");
+        ERR("Failed to load libgnutls, secure connections will not be available.\n");
         return FALSE;
     }
 


More information about the wine-patches mailing list