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