set dll->dll = NULL on failure in ffi_dllopen()

cvs
Doug Coleman 2005-10-02 19:47:33 +00:00
parent 3968d9f93b
commit b34da424dd
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ void ffi_dlopen (DLL *dll, bool error)
if (!module)
{
dll->dll = NULL;
if(error)
general_error(ERROR_FFI, tag_object(last_error()));
else
@ -42,4 +43,4 @@ void ffi_dlclose (DLL *dll)
{
FreeLibrary((HMODULE)dll->dll);
dll->dll = NULL;
}
}