FFI: Properly unload loaded DLLs.

This commit is contained in:
Mike Pall 2013-07-24 23:49:19 +02:00
parent ec96d8b494
commit 6dc02450d3

View File

@ -220,7 +220,7 @@ static void clib_unloadlib(CLibrary *cl)
FreeLibrary((HINSTANCE)h);
}
}
} else if (!cl->handle) {
} else if (cl->handle) {
FreeLibrary((HINSTANCE)cl->handle);
}
}