Author: tkreuzer
Date: Wed Aug 16 16:06:36 2017
New Revision: 75574
URL:
http://svn.reactos.org/svn/reactos?rev=75574&view=rev
Log:
[KERNEL32] Support PAGE_EXECUTE_WRITECOPY in CreateFileMappingW if OsMajorVersion is 6+.
Modified:
trunk/reactos/dll/win32/kernel32/client/file/filemap.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/filemap.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/filemap.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/filemap.c [iso-8859-1] Wed Aug 16
16:06:36 2017
@@ -84,6 +84,12 @@
{
/* Give it */
DesiredAccess |= SECTION_MAP_EXECUTE;
+ }
+ else if ((flProtect == PAGE_EXECUTE_WRITECOPY) &&
+ (NtCurrentPeb()->OSMajorVersion >= 6))
+ {
+ /* Give it */
+ DesiredAccess |= (SECTION_MAP_WRITE | SECTION_MAP_EXECUTE);
}
else if ((flProtect != PAGE_READONLY) && (flProtect != PAGE_WRITECOPY))
{