summaryrefslogtreecommitdiff
path: root/misc/win32/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/win32/misc.c')
-rw-r--r--misc/win32/misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/misc/win32/misc.c b/misc/win32/misc.c
index 3f1252443..3591f63c6 100644
--- a/misc/win32/misc.c
+++ b/misc/win32/misc.c
@@ -97,7 +97,10 @@ apr_status_t apr_get_oslevel(apr_oslevel_e *level)
}
}
else if (oslev.dwMajorVersion == 6) {
- apr_os_level = APR_WIN_VISTA;
+ if (oslev.dwMinorVersion == 0)
+ apr_os_level = APR_WIN_VISTA;
+ else
+ apr_os_level = APR_WIN_7;
}
else {
apr_os_level = APR_WIN_XP;