From b34da424dd8864dce81e48f3a50082a74111e464 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sun, 2 Oct 2005 19:47:33 +0000 Subject: [PATCH] set dll->dll = NULL on failure in ffi_dllopen() --- native/win32/ffi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/native/win32/ffi.c b/native/win32/ffi.c index 02e64b876b..1bde5b64c5 100644 --- a/native/win32/ffi.c +++ b/native/win32/ffi.c @@ -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; -} \ No newline at end of file +}