mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 05:35:06 +00:00
Fix my bad fix.
svn path=/trunk/; revision=26119
This commit is contained in:
parent
566a0ec7e9
commit
f4f6d1b7e2
|
@ -3716,7 +3716,7 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
||||||
if(SectionOffset != NULL)
|
if(SectionOffset != NULL)
|
||||||
{
|
{
|
||||||
ProbeForWriteLargeInteger(SectionOffset);
|
ProbeForWriteLargeInteger(SectionOffset);
|
||||||
SafeSectionOffset.QuadPart = PAGE_ROUND_DOWN(SectionOffset->QuadPart);
|
SafeSectionOffset = *SectionOffset;
|
||||||
}
|
}
|
||||||
ProbeForWriteSize_t(ViewSize);
|
ProbeForWriteSize_t(ViewSize);
|
||||||
SafeViewSize = *ViewSize;
|
SafeViewSize = *ViewSize;
|
||||||
|
@ -3735,11 +3735,12 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SafeBaseAddress = (BaseAddress != NULL ? *BaseAddress : NULL);
|
SafeBaseAddress = (BaseAddress != NULL ? *BaseAddress : NULL);
|
||||||
SafeSectionOffset.QuadPart =
|
SafeSectionOffset.QuadPart = (SectionOffset != NULL ? SectionOffset->QuadPart : 0);
|
||||||
(SectionOffset != NULL ? PAGE_ROUND_DOWN(SectionOffset->QuadPart) : 0);
|
|
||||||
SafeViewSize = (ViewSize != NULL ? *ViewSize : 0);
|
SafeViewSize = (ViewSize != NULL ? *ViewSize : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SafeSectionOffset.LowPart = PAGE_ROUND_DOWN(SafeSectionOffset.LowPart);
|
||||||
|
|
||||||
Status = ObReferenceObjectByHandle(ProcessHandle,
|
Status = ObReferenceObjectByHandle(ProcessHandle,
|
||||||
PROCESS_VM_OPERATION,
|
PROCESS_VM_OPERATION,
|
||||||
PsProcessType,
|
PsProcessType,
|
||||||
|
|
Loading…
Reference in a new issue