Author: dgorbachev
Date: Sat Mar 17 11:30:26 2007
New Revision: 26119
URL:
http://svn.reactos.org/svn/reactos?rev=26119&view=rev
Log:
Fix my bad fix.
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c (original)
+++ trunk/reactos/ntoskrnl/mm/section.c Sat Mar 17 11:30:26 2007
@@ -3716,7 +3716,7 @@
if(SectionOffset != NULL)
{
ProbeForWriteLargeInteger(SectionOffset);
- SafeSectionOffset.QuadPart = PAGE_ROUND_DOWN(SectionOffset->QuadPart);
+ SafeSectionOffset = *SectionOffset;
}
ProbeForWriteSize_t(ViewSize);
SafeViewSize = *ViewSize;
@@ -3735,10 +3735,11 @@
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,