mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 00:40:26 +08:00
[KERNEL32] Fix PAGE_EXECUTE_WRITECOPY section access in CreateFileMappingW
When PAGE_EXECUTE_WRITECOPY is requested in CreateFileMappingW, give only SECTION_MAP_EXECUTE access, not SECTION_MAP_WRITE.
This commit is contained in:
@@ -89,7 +89,7 @@ CreateFileMappingW(HANDLE hFile,
|
||||
(NtCurrentPeb()->OSMajorVersion >= 6))
|
||||
{
|
||||
/* Give it */
|
||||
DesiredAccess |= (SECTION_MAP_WRITE | SECTION_MAP_EXECUTE);
|
||||
DesiredAccess |= SECTION_MAP_EXECUTE;
|
||||
}
|
||||
else if ((flProtect != PAGE_READONLY) && (flProtect != PAGE_WRITECOPY))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user