From 76c5505c5e9366279bfb0515f9df5365c1690e8f Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Tue, 12 May 2009 09:00:06 +0000 Subject: [PATCH] - MmCreateSection: SectionPageProtection of PAGE_NOACCESS is valid in <=Win98, but not valid in the NT family. More kernel32_winetest fixes for virtual memory. svn path=/trunk/; revision=40894 --- reactos/ntoskrnl/mm/section.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/section.c b/reactos/ntoskrnl/mm/section.c index cf3bac71aee..ea980d6cf96 100644 --- a/reactos/ntoskrnl/mm/section.c +++ b/reactos/ntoskrnl/mm/section.c @@ -4990,8 +4990,7 @@ MmCreateSection (OUT PVOID * Section, * Check the protection */ Protection = SectionPageProtection & ~(PAGE_GUARD|PAGE_NOCACHE); - if (Protection != PAGE_NOACCESS && - Protection != PAGE_READONLY && + if (Protection != PAGE_READONLY && Protection != PAGE_READWRITE && Protection != PAGE_WRITECOPY && Protection != PAGE_EXECUTE &&