Commit d7272ded authored by Robert Lunnon's avatar Robert Lunnon Committed by Alexandre Julliard

Add RTLD_FIRST flag to dlopen calls.

parent 12f9bb7a
...@@ -555,6 +555,10 @@ void wine_init( int argc, char *argv[], char *error, int error_size ) ...@@ -555,6 +555,10 @@ void wine_init( int argc, char *argv[], char *error, int error_size )
* parameter may be NULL if the error description is not required. * parameter may be NULL if the error description is not required.
*/ */
#ifndef RTLD_FIRST
#define RTLD_FIRST 0
#endif
/*********************************************************************** /***********************************************************************
* wine_dlopen * wine_dlopen
*/ */
...@@ -564,7 +568,7 @@ void *wine_dlopen( const char *filename, int flag, char *error, size_t errorsize ...@@ -564,7 +568,7 @@ void *wine_dlopen( const char *filename, int flag, char *error, size_t errorsize
void *ret; void *ret;
const char *s; const char *s;
dlerror(); dlerror(); dlerror(); dlerror();
ret = dlopen( filename, flag ); ret = dlopen( filename, flag | RTLD_FIRST );
s = dlerror(); s = dlerror();
if (error && errorsize) if (error && errorsize)
{ {
......
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