Recognize Solaris dlopen error messages

François Gouget fgouget at codeweavers.com
Fri Oct 12 21:52:39 CDT 2001


Changelog:

 * relay32/builtin32.c

   Recognize the Solaris dlopen equivalent of "cannot open"


-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: relay32/builtin32.c
===================================================================
RCS file: /home/wine/wine/relay32/builtin32.c,v
retrieving revision 1.81
diff -u -r1.81 builtin32.c
--- relay32/builtin32.c	2001/07/25 00:43:36	1.81
+++ relay32/builtin32.c	2001/10/13 00:13:43
@@ -41,10 +41,13 @@
 
     if (!(handle = wine_dll_load( name, error, sizeof(error) )))
     {
-        if (strstr(error, "cannot open")) /* cannot open -> WARN() */
+        if (strstr(error, "cannot open") || strstr(error, "open failed")) {
+	    /* The file does not exist -> WARN() */
             WARN("cannot open .so lib for builtin %s: %s\n", name, error);
-        else /* ERR() for all other errors (missing functions, ...) */
+        } else {
+	    /* ERR() for all other errors (missing functions, ...) */
             ERR("failed to load .so lib for builtin %s: %s\n", name, error );
+	}
     }
     return handle;
 }


More information about the wine-patches mailing list