mirror of
https://github.com/reactos/reactos.git
synced 2024-08-13 22:56:37 +00:00
[KERNEL32] Support PAGE_EXECUTE_WRITECOPY in CreateFileMappingW if OsMajorVersion is 6+.
svn path=/trunk/; revision=75574
This commit is contained in:
parent
e7ffae1153
commit
85f9842aab
|
@ -85,6 +85,12 @@ CreateFileMappingW(HANDLE hFile,
|
||||||
/* Give it */
|
/* Give it */
|
||||||
DesiredAccess |= SECTION_MAP_EXECUTE;
|
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))
|
else if ((flProtect != PAGE_READONLY) && (flProtect != PAGE_WRITECOPY))
|
||||||
{
|
{
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
|
Loading…
Reference in a new issue