From 5d4c7c669bc55df30b1587f2bee74abcfb09c280 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 15 Jun 1999 19:25:07 +0000 Subject: [PATCH] * 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. --- ChangeLog | 7 +++++++ libltdl/ltdl.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 98821aada..851713b62 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +1999-06-15 Gary V. Vaughan + + * 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 * ltmain.in: minor reformatting diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 1580fe5e7..dbee31cb7 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -531,7 +531,7 @@ static int sys_wll_close (handle) lt_dlhandle handle; { - if (FreeLibrary(handle->handle) != 0) { + if (FreeLibrary(handle->handle) == 0) { last_error = cannot_close_error; return 1; } -- 2.47.3