ntdll: Use STATUS_INVALID_PAGE_PROTECTION as return value for invalid protections.
This commit is contained in:
parent
8d0ba5d21b
commit
988307e87b
@ -584,7 +584,7 @@ static NTSTATUS get_vprot_flags( DWORD protect, unsigned int *vprot )
|
|||||||
*vprot = 0;
|
*vprot = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PAGE_PROTECTION;
|
||||||
}
|
}
|
||||||
if (protect & PAGE_GUARD) *vprot |= VPROT_GUARD;
|
if (protect & PAGE_GUARD) *vprot |= VPROT_GUARD;
|
||||||
if (protect & PAGE_NOCACHE) *vprot |= VPROT_NOCACHE;
|
if (protect & PAGE_NOCACHE) *vprot |= VPROT_NOCACHE;
|
||||||
@ -2501,7 +2501,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
|
|||||||
access = SECTION_MAP_READ;
|
access = SECTION_MAP_READ;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PAGE_PROTECTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process != NtCurrentProcess())
|
if (process != NtCurrentProcess())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user