mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
Fix my bad fix.
svn path=/trunk/; revision=26119
This commit is contained in:
parent
566a0ec7e9
commit
f4f6d1b7e2
1 changed files with 4 additions and 3 deletions
|
@ -3716,7 +3716,7 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
|||
if(SectionOffset != NULL)
|
||||
{
|
||||
ProbeForWriteLargeInteger(SectionOffset);
|
||||
SafeSectionOffset.QuadPart = PAGE_ROUND_DOWN(SectionOffset->QuadPart);
|
||||
SafeSectionOffset = *SectionOffset;
|
||||
}
|
||||
ProbeForWriteSize_t(ViewSize);
|
||||
SafeViewSize = *ViewSize;
|
||||
|
@ -3735,11 +3735,12 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
|||
else
|
||||
{
|
||||
SafeBaseAddress = (BaseAddress != NULL ? *BaseAddress : NULL);
|
||||
SafeSectionOffset.QuadPart =
|
||||
(SectionOffset != NULL ? PAGE_ROUND_DOWN(SectionOffset->QuadPart) : 0);
|
||||
SafeSectionOffset.QuadPart = (SectionOffset != NULL ? SectionOffset->QuadPart : 0);
|
||||
SafeViewSize = (ViewSize != NULL ? *ViewSize : 0);
|
||||
}
|
||||
|
||||
SafeSectionOffset.LowPart = PAGE_ROUND_DOWN(SafeSectionOffset.LowPart);
|
||||
|
||||
Status = ObReferenceObjectByHandle(ProcessHandle,
|
||||
PROCESS_VM_OPERATION,
|
||||
PsProcessType,
|
||||
|
|
Loading…
Reference in a new issue