win_dynld: Add GetLastError() to GetProcAddress as well
This commit is contained in:
@@ -63,8 +63,8 @@ dynld_module(const char *name, dllimp_t *table)
|
|||||||
for (imp=table; imp->name!=NULL; imp++) {
|
for (imp=table; imp->name!=NULL; imp++) {
|
||||||
func = GetProcAddress(h, imp->name);
|
func = GetProcAddress(h, imp->name);
|
||||||
if (func == NULL) {
|
if (func == NULL) {
|
||||||
dynld_log("DynLd(\"%s\"): function '%s' not found!\n",
|
dynld_log("DynLd(\"%s\"): function '%s' not found! (%08X)\n",
|
||||||
name, imp->name);
|
name, imp->name, GetLastError());
|
||||||
FreeLibrary(h);
|
FreeLibrary(h);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user