decided that LoadLibrary returns `0' for success, yet FreeLibrary
returns `0' for failure! The FreeLibrary call used to interpret
`0' as success for both functions.
+1999-06-15 Gary V. Vaughan <gary@oranda.demon.co.uk>
+
+ * libltdl/ltdl.c (sys_wll_close): Strangely enough, Microsoft have
+ decided that LoadLibrary returns `0' for success, yet FreeLibrary
+ returns `0' for failure! The FreeLibrary call used to interpret
+ `0' as success for both functions.
+
1999-06-14 Thomas Tanner <tanner@ffii.org>
* ltmain.in: minor reformatting
sys_wll_close (handle)
lt_dlhandle handle;
{
- if (FreeLibrary(handle->handle) != 0) {
+ if (FreeLibrary(handle->handle) == 0) {
last_error = cannot_close_error;
return 1;
}