From 0481910ed0167ea523cefdffb03bdbbbd0f2d2d5 Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Fri, 1 May 2015 13:12:02 +0200 Subject: [PATCH] Fix Windows version check Correclty check for Windows 8 version (6.2), in case this code path gets re-enabled again. Note that Windows 10 has version number 10.0, so it would finally take the code path originally intended for Windows 8 and higher. --- src/Win32_Interop/Win32_QFork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Win32_Interop/Win32_QFork.cpp b/src/Win32_Interop/Win32_QFork.cpp index e5f1e0ea..1bc094b7 100644 --- a/src/Win32_Interop/Win32_QFork.cpp +++ b/src/Win32_Interop/Win32_QFork.cpp @@ -1083,7 +1083,7 @@ void RejoinCOWPages(HANDLE mmHandle, byte* mmStart, size_t mmSize) { // If the COWs are not discarded, then there is no way of propagating changes into subsequent fork operations. #if FALSE // This doesn't work. Disabling for now. - if (IsWindowsVersionAtLeast(8, 0, 0)) { + if (IsWindowsVersionAtLeast(6, 2, 0)) { // restores all page protections on the view and culls the COW pages. DWORD oldProtect; if (FALSE == VirtualProtect(mmStart, mmSize, PAGE_READWRITE | PAGE_REVERT_TO_FILE_MAP, &oldProtect)) {