From 9347986ebee3d88b6b932a54c1fce572ee008428 Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 15 Jan 2020 01:10:41 +0100 Subject: [PATCH] Fixed the dynamic DLL load code to use the correct API call to free the library. --- src/win/win_dynld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/win_dynld.c b/src/win/win_dynld.c index 6043e36d6..e258ebe19 100644 --- a/src/win/win_dynld.c +++ b/src/win/win_dynld.c @@ -65,7 +65,7 @@ dynld_module(const char *name, dllimp_t *table) if (func == NULL) { dynld_log("DynLd(\"%s\"): function '%s' not found!\n", name, imp->name); - CloseHandle(h); + FreeLibrary(h); return(NULL); }