Commit 49851f88 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Back out my ELFDLL_dlopen patch and add a warning for future misguided

hackers.
parent 2e7008cd
......@@ -57,6 +57,7 @@ void *ELFDLL_dlopen(const char *libname, int flags)
/* First try the default path search of dlopen() */
handle = dlopen(libname, flags);
/* do NOT call dlerror() here ! (check after return) */
if(handle)
return handle;
......@@ -100,10 +101,9 @@ void *ELFDLL_dlopen(const char *libname, int flags)
TRACE("Trying dlopen('%s', %d)\n", buffer, flags);
handle = dlopen(buffer, flags);
/* do NOT call dlerror() here ! (check after return) */
if(handle)
return handle;
else
TRACE("possible dlopen() error: %s\n", dlerror());
}
return NULL;
}
......
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