summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/win32/misc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/win32/misc.c b/misc/win32/misc.c
index 20e99eddc..910b0b41e 100644
--- a/misc/win32/misc.c
+++ b/misc/win32/misc.c
@@ -89,8 +89,12 @@ apr_status_t apr_get_oslevel(apr_oslevel_e *level)
else if (oslev.dwMajorVersion == 6) {
if (oslev.dwMinorVersion == 0)
apr_os_level = APR_WIN_VISTA;
- else if (oslev.dwMinorVersion == 1)
- apr_os_level = APR_WIN_7;
+ else if (oslev.dwMinorVersion == 1) {
+ if (servpack < 1)
+ apr_os_level = APR_WIN_7;
+ else
+ apr_os_level = APR_WIN_7_SP1;
+ }
else if (oslev.dwMinorVersion == 2)
apr_os_level = APR_WIN_8;
else