summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2019-06-11 16:58:52 +0000
committerIvan Zhakov <ivan@apache.org>2019-06-11 16:58:52 +0000
commit7b52deb67b9f049fce2f05cf5f4ec32efb48bbcd (patch)
treea419ad0848aec1268773bea1b5b9710bcbc6236f /misc
parentc85f86977969a9305cebc7bc80fc177bd21105e9 (diff)
downloadapr-7b52deb67b9f049fce2f05cf5f4ec32efb48bbcd.tar.gz
* misc/win32/misc.c
(apr_get_oslevel): Fix condition to actually return APR_EGENERAL on unsupported OS. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1861050 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r--misc/win32/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/win32/misc.c b/misc/win32/misc.c
index 630147b43..6f0b22f33 100644
--- a/misc/win32/misc.c
+++ b/misc/win32/misc.c
@@ -116,7 +116,7 @@ apr_status_t apr_get_oslevel(apr_oslevel_e *level)
*level = apr_os_level;
- if (apr_os_level < APR_WIN_UNSUP) {
+ if (apr_os_level <= APR_WIN_UNSUP) {
return APR_EGENERAL;
}