Reverted the win_dynld.c "fix".
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define HAVE_STDARG_H
|
#define HAVE_STDARG_H
|
||||||
#include <86box/86box.h>
|
#include <86box/86box.h>
|
||||||
#include <86box/plat.h>
|
|
||||||
#include <86box/plat_dynld.h>
|
#include <86box/plat_dynld.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -53,11 +52,9 @@ dynld_module(const char *name, dllimp_t *table)
|
|||||||
HMODULE h;
|
HMODULE h;
|
||||||
dllimp_t *imp;
|
dllimp_t *imp;
|
||||||
void *func;
|
void *func;
|
||||||
WCHAR uname[512];
|
|
||||||
|
|
||||||
/* See if we can load the desired module. */
|
/* See if we can load the desired module. */
|
||||||
mbstoc16s(uname, name, strlen(name) + 1);
|
if ((h = LoadLibrary((WCHAR *) name)) == NULL) {
|
||||||
if ((h = LoadLibrary(uname)) == NULL) {
|
|
||||||
dynld_log("DynLd(\"%s\"): library not found! (%08X)\n", name, GetLastError());
|
dynld_log("DynLd(\"%s\"): library not found! (%08X)\n", name, GetLastError());
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
@@ -23,7 +23,6 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define HAVE_STDARG_H
|
#define HAVE_STDARG_H
|
||||||
#include <86box/86box.h>
|
#include <86box/86box.h>
|
||||||
#include <86box/plat.h>
|
|
||||||
#include <86box/plat_dynld.h>
|
#include <86box/plat_dynld.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -53,11 +52,9 @@ dynld_module(const char *name, dllimp_t *table)
|
|||||||
HMODULE h;
|
HMODULE h;
|
||||||
dllimp_t *imp;
|
dllimp_t *imp;
|
||||||
void *func;
|
void *func;
|
||||||
WCHAR uname[512];
|
|
||||||
|
|
||||||
/* See if we can load the desired module. */
|
/* See if we can load the desired module. */
|
||||||
mbstoc16s(uname, name, strlen(name) + 1);
|
if ((h = LoadLibrary((WCHAR *) name)) == NULL) {
|
||||||
if ((h = LoadLibrary(uname)) == NULL) {
|
|
||||||
dynld_log("DynLd(\"%s\"): library not found! (%08X)\n", name, GetLastError());
|
dynld_log("DynLd(\"%s\"): library not found! (%08X)\n", name, GetLastError());
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user