]> granicus.if.org Git - php/commitdiff
fix win10 support
authorAnatol Belski <ab@php.net>
Sat, 3 Oct 2015 08:44:43 +0000 (10:44 +0200)
committerAnatol Belski <ab@php.net>
Sat, 3 Oct 2015 08:44:43 +0000 (10:44 +0200)
dwMajorVersion == 10 there, and generally this check is obsolete
as we don't support dwMajorVersion < 6 since 5.5

ext/opcache/shared_alloc_win32.c

index ae8917dcf54e355bc949634e52c8db8989c74e49..cf4bce005d68aba44a83ca0a93ff41e524f91d34 100644 (file)
@@ -266,7 +266,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
                        GetSystemInfo(&si);
 
                        /* Are we running Vista ? */
-                       if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT && osvi.dwMajorVersion == 6) {
+                       if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT && osvi.dwMajorVersion >= 6) {
                                wanted_mapping_base = vista_mapping_base_set;
                        }
                } while (0);