From d5efe6cab5c7ba621e25304bbfcefa78a7d0684a Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 18 Nov 2021 19:47:57 -0300 Subject: [PATCH] win_dynld: Add GetLastError() to GetProcAddress as well --- src/win/win_dynld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/win/win_dynld.c b/src/win/win_dynld.c index 96ed1666e..c0f9b4488 100644 --- a/src/win/win_dynld.c +++ b/src/win/win_dynld.c @@ -63,8 +63,8 @@ dynld_module(const char *name, dllimp_t *table) for (imp=table; imp->name!=NULL; imp++) { func = GetProcAddress(h, imp->name); if (func == NULL) { - dynld_log("DynLd(\"%s\"): function '%s' not found!\n", - name, imp->name); + dynld_log("DynLd(\"%s\"): function '%s' not found! (%08X)\n", + name, imp->name, GetLastError()); FreeLibrary(h); return(NULL); }