Dmitry Timoshkov : ntdll: Use STATUS_INVALID_PAGE_PROTECTION as return value for invalid protections .
Alexandre Julliard
julliard at winehq.org
Wed Sep 28 14:45:45 CDT 2011
Module: wine
Branch: master
Commit: 988307e87b67560ece29cb3c4c94e978fc8cfc46
URL: http://source.winehq.org/git/wine.git/?a=commit;h=988307e87b67560ece29cb3c4c94e978fc8cfc46
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Wed Sep 28 14:47:06 2011 +0900
ntdll: Use STATUS_INVALID_PAGE_PROTECTION as return value for invalid protections.
---
dlls/ntdll/virtual.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/virtual.c b/dlls/ntdll/virtual.c
index 10fba17..5e69eb9 100644
--- a/dlls/ntdll/virtual.c
+++ b/dlls/ntdll/virtual.c
@@ -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())
More information about the wine-cvs
mailing list