]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
The Windows MPM was sometimes returning APR_NOTFOUND when it should
authorRyan Bloom <rbb@apache.org>
Wed, 26 Jul 2000 13:45:01 +0000 (13:45 +0000)
committerRyan Bloom <rbb@apache.org>
Wed, 26 Jul 2000 13:45:01 +0000 (13:45 +0000)
have been returning APR_ENOFILE.  This fixes that problem.
Submitted by: Gregory Nicholls <gnicholls@level8.com>
Reviewed by: Ryan Bloom

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85891 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/registry.c

index 893b0bfda90e2f40b7f9fe91475bb544eee0d853..d51cbcf6a35a3a2e71d32ca05bd90648914c0e38 100644 (file)
@@ -225,7 +225,7 @@ ap_status_t ap_registry_get_value(ap_pool_t *p, const char *key, const char *nam
                         &nSize);       /* for size of "value" */
 
     if (rv == ERROR_FILE_NOT_FOUND)
-        rv = APR_NOTFOUND;
+        rv = APR_ENOFILE;
 
     RegCloseKey(hKey);
 
@@ -265,7 +265,7 @@ ap_status_t ap_registry_get_array(ap_pool_t *p, const char *key, const char *nam
                         &nSize);               /* for size of "value" */
 
     if (rv == ERROR_FILE_NOT_FOUND) {
-        rv = APR_NOTFOUND;
+        rv = APR_ENOFILE;
     }
     else if (rv != ERROR_SUCCESS) {
        return_error(rv);