From: Bill Stoddard Date: Tue, 31 Aug 1999 15:26:45 +0000 (+0000) Subject: Fix faulty comparison. MSVC TRUE == 1 while Borland TRUE == -1 X-Git-Tag: 1.3.10~343 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0d472f1373f0bda23c33768889c55572a64f668;p=thirdparty%2Fapache%2Fhttpd.git Fix faulty comparison. MSVC TRUE == 1 while Borland TRUE == -1 PR: 4333, 4887 Submitted by: Sergey Verlan git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83856 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/win32/mod_isapi.c b/modules/arch/win32/mod_isapi.c index 1b874a87e84..c35c22ea845 100644 --- a/modules/arch/win32/mod_isapi.c +++ b/modules/arch/win32/mod_isapi.c @@ -172,7 +172,7 @@ int isapi_handler (request_rec *r) { /* Run GetExtensionVersion() */ - if ((*isapi_version)(pVer) != TRUE) { + if (!(*isapi_version)(pVer)) { ap_log_rerror(APLOG_MARK, APLOG_ALERT, r, "ISAPI GetExtensionVersion() failed: %s", r->filename); FreeLibrary(isapi_handle); diff --git a/os/win32/mod_isapi.c b/os/win32/mod_isapi.c index 1b874a87e84..c35c22ea845 100644 --- a/os/win32/mod_isapi.c +++ b/os/win32/mod_isapi.c @@ -172,7 +172,7 @@ int isapi_handler (request_rec *r) { /* Run GetExtensionVersion() */ - if ((*isapi_version)(pVer) != TRUE) { + if (!(*isapi_version)(pVer)) { ap_log_rerror(APLOG_MARK, APLOG_ALERT, r, "ISAPI GetExtensionVersion() failed: %s", r->filename); FreeLibrary(isapi_handle);