Commit 988307e8 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

ntdll: Use STATUS_INVALID_PAGE_PROTECTION as return value for invalid protections.

parent 8d0ba5d2
......@@ -584,7 +584,7 @@ static NTSTATUS get_vprot_flags( DWORD protect, unsigned int *vprot )
*vprot = 0;
break;
default:
return STATUS_INVALID_PARAMETER;
return STATUS_INVALID_PAGE_PROTECTION;
}
if (protect & PAGE_GUARD) *vprot |= VPROT_GUARD;
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;
break;
default:
return STATUS_INVALID_PARAMETER;
return STATUS_INVALID_PAGE_PROTECTION;
}
if (process != NtCurrentProcess())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment