]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix faulty comparison. MSVC TRUE == 1 while Borland TRUE == -1
authorBill Stoddard <stoddard@apache.org>
Tue, 31 Aug 1999 15:26:45 +0000 (15:26 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 31 Aug 1999 15:26:45 +0000 (15:26 +0000)
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

modules/arch/win32/mod_isapi.c
os/win32/mod_isapi.c

index 1b874a87e849dfbacb91cb84ae7eede8884058e4..c35c22ea845bcde3d4276a6024fa8d381c6be2b1 100644 (file)
@@ -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);
index 1b874a87e849dfbacb91cb84ae7eede8884058e4..c35c22ea845bcde3d4276a6024fa8d381c6be2b1 100644 (file)
@@ -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);