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

hackers.
This commit is contained in:
Andreas Mohr 2000-10-19 20:25:02 +00:00 committed by Alexandre Julliard
parent 2e7008cdb0
commit 49851f88e3
1 changed files with 2 additions and 2 deletions

View File

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