win_dynld: Add GetLastError() to failure log
This commit is contained in:
@@ -55,7 +55,7 @@ dynld_module(const char *name, dllimp_t *table)
|
|||||||
|
|
||||||
/* See if we can load the desired module. */
|
/* See if we can load the desired module. */
|
||||||
if ((h = LoadLibrary(name)) == NULL) {
|
if ((h = LoadLibrary(name)) == NULL) {
|
||||||
dynld_log("DynLd(\"%s\"): library not found!\n", name);
|
dynld_log("DynLd(\"%s\"): library not found! (%08X)\n", name, GetLastError());
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,6 +74,7 @@ dynld_module(const char *name, dllimp_t *table)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* All good. */
|
/* All good. */
|
||||||
|
pclog("loaded %s\n", name);
|
||||||
return((void *)h);
|
return((void *)h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user