Fixed the dynamic DLL load code to use the correct API call to free the library.

This commit is contained in:
OBattler
2020-01-15 01:10:41 +01:00
parent 47b61d5c42
commit 9347986ebe

View File

@@ -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);
}