From cae0ed730b4e66dfc06093c998bf0c45ef6a5114 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Thu, 18 Nov 2021 19:46:23 -0300 Subject: [PATCH] win_dynld: Add GetLastError() to failure log --- src/win/win_dynld.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win/win_dynld.c b/src/win/win_dynld.c index 41942ba61..96ed1666e 100644 --- a/src/win/win_dynld.c +++ b/src/win/win_dynld.c @@ -55,7 +55,7 @@ dynld_module(const char *name, dllimp_t *table) /* See if we can load the desired module. */ 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); } @@ -74,6 +74,7 @@ dynld_module(const char *name, dllimp_t *table) } /* All good. */ + pclog("loaded %s\n", name); return((void *)h); }