Skip to content
Snippets Groups Projects
Commit 5f48ff3c authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard
Browse files

Fixed dlerror() check to use strstr().

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