]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix an ap_log_rerror call in a Win32 code branch
authorBill Stoddard <stoddard@apache.org>
Wed, 20 Oct 1999 21:00:00 +0000 (21:00 +0000)
committerBill Stoddard <stoddard@apache.org>
Wed, 20 Oct 1999 21:00:00 +0000 (21:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84013 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_core.c

index 1c8564b60c2a187341d7b8a3e20c7d75570e5135..0f68dfa686931c38a7f30439a5797ca936744b4d 100644 (file)
@@ -871,7 +871,7 @@ API_EXPORT (file_type_e) ap_get_win32_interpreter(const  request_rec *r,
     bResult = ReadFile(hFile, (void*) &buffer, sizeof(buffer) - 1, 
                        &nBytesRead, NULL);
     if (!bResult || (nBytesRead == 0)) {
-        ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
+        ap_log_rerror(APLOG_MARK, APLOG_ERR, GetLastError(), r,
                       "ReadFile(%s) failed", r->filename);
         CloseHandle(hFile);
         return eFileTypeUNKNOWN;