forked from Mirrors/wine-wine
wineconsole: Use standard dlopen() instead of the libwine wrappers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>feature/deterministic
parent
5016716f6e
commit
0f53fca321
|
@ -53,7 +53,6 @@
|
||||||
#include <winnls.h>
|
#include <winnls.h>
|
||||||
#include "winecon_private.h"
|
#include "winecon_private.h"
|
||||||
|
|
||||||
#include "wine/library.h"
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#undef ERR
|
#undef ERR
|
||||||
#define ERR (-1)
|
#define ERR (-1)
|
||||||
|
@ -139,7 +138,7 @@ static BOOL WCCURSES_bind_libcurses(void)
|
||||||
static const char ncname[] = SONAME_LIBCURSES;
|
static const char ncname[] = SONAME_LIBCURSES;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
nc_handle = wine_dlopen(ncname, RTLD_NOW, NULL, 0);
|
nc_handle = dlopen(ncname, RTLD_NOW);
|
||||||
if(!nc_handle)
|
if(!nc_handle)
|
||||||
{
|
{
|
||||||
WINE_MESSAGE("Wine cannot find the " CURSES_NAME " library (%s).\n",
|
WINE_MESSAGE("Wine cannot find the " CURSES_NAME " library (%s).\n",
|
||||||
|
@ -148,7 +147,7 @@ static BOOL WCCURSES_bind_libcurses(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define LOAD_FUNCPTR(f) \
|
#define LOAD_FUNCPTR(f) \
|
||||||
if((p_##f = wine_dlsym(nc_handle, #f, NULL, 0)) == NULL) \
|
if((p_##f = dlsym(nc_handle, #f)) == NULL) \
|
||||||
{ \
|
{ \
|
||||||
WINE_WARN("Can't find symbol %s\n", #f); \
|
WINE_WARN("Can't find symbol %s\n", #f); \
|
||||||
goto sym_not_found; \
|
goto sym_not_found; \
|
||||||
|
@ -200,7 +199,7 @@ sym_not_found:
|
||||||
"Wine cannot find certain functions that it needs inside the "
|
"Wine cannot find certain functions that it needs inside the "
|
||||||
CURSES_NAME "\nlibrary. To enable Wine to use " CURSES_NAME
|
CURSES_NAME "\nlibrary. To enable Wine to use " CURSES_NAME
|
||||||
" please upgrade your " CURSES_NAME "\nlibraries\n");
|
" please upgrade your " CURSES_NAME "\nlibraries\n");
|
||||||
wine_dlclose(nc_handle, NULL, 0);
|
dlclose(nc_handle);
|
||||||
nc_handle = NULL;
|
nc_handle = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue