From: Ryan Bloom Date: Wed, 26 Jul 2000 13:45:01 +0000 (+0000) Subject: The Windows MPM was sometimes returning APR_NOTFOUND when it should X-Git-Tag: APACHE_2_0_ALPHA_5~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d5da54cc04c29c255f526e43f52d2545dd58dca;p=thirdparty%2Fapache%2Fhttpd.git The Windows MPM was sometimes returning APR_NOTFOUND when it should have been returning APR_ENOFILE. This fixes that problem. Submitted by: Gregory Nicholls Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85891 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/registry.c b/server/mpm/winnt/registry.c index 893b0bfda90..d51cbcf6a35 100644 --- a/server/mpm/winnt/registry.c +++ b/server/mpm/winnt/registry.c @@ -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);