DSO_close wasn't returning a value on Win32
authorTony Cook <tony@develop=help.com>
Mon, 1 Apr 2002 14:26:44 +0000 (14:26 +0000)
committerTony Cook <tony@develop=help.com>
Mon, 1 Apr 2002 14:26:44 +0000 (14:26 +0000)
dynaload.c

index 28b646c..a058b05 100644 (file)
@@ -128,9 +128,11 @@ DSO_open(char *file, char **evalstring) {
 undef_int
 DSO_close(void *ptr) {
   DSO_handle *handle = (DSO_handle *)ptr;
-  FreeLibrary(handle->handle);
+  BOOL result = FreeLibrary(handle->handle);
   free(handle->filename);
   free(handle);
+
+  return result;
 }
 
 #else