Commit 5f48ff3c authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Fixed dlerror() check to use strstr().

parent f5a8ecc9
...@@ -46,11 +46,9 @@ void *BUILTIN32_dlopen( const char *name ) ...@@ -46,11 +46,9 @@ void *BUILTIN32_dlopen( const char *name )
if (!(handle = wine_dll_load( name ))) if (!(handle = wine_dll_load( name )))
{ {
LPSTR pErr, p; LPSTR pErr;
pErr = dlerror(); pErr = dlerror();
p = strchr(pErr, ':'); if (strstr(pErr, "undefined symbol")) /* undef symbol -> ERR() */
if ((p) &&
(!strncmp(p, ": undefined symbol", 18))) /* undef symbol -> ERR() */
ERR("failed to load %s: %s\n", name, pErr); ERR("failed to load %s: %s\n", name, pErr);
else /* WARN() for libraries that are supposed to be native */ else /* WARN() for libraries that are supposed to be native */
WARN("failed to load %s: %s\n", name, pErr ); WARN("failed to load %s: %s\n", name, pErr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment