Author: dgorbachev Date: Fri Mar 16 19:54:34 2007 New Revision: 26117
URL: http://svn.reactos.org/svn/reactos?rev=26117&view=rev Log: Fix bugs #2049 and #2084 (thanks to Peter Krawies)
Modified: trunk/reactos/boot/freeldr/freeldr/include/video.h trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/boot/freeldr/freeldr/include/video.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/freeldr/freeldr/includ... ============================================================================== --- trunk/reactos/boot/freeldr/freeldr/include/video.h (original) +++ trunk/reactos/boot/freeldr/freeldr/include/video.h Fri Mar 16 19:54:34 2007 @@ -29,7 +29,7 @@
extern PVOID VideoOffScreenBuffer;
-USHORT BiosIsVesaSupported(VOID); // Implemented in i386vid.S, returns the VESA version +USHORT BiosIsVesaSupported(VOID); // Implemented in i386vid.c, returns the VESA version
PVOID VideoAllocateOffScreenBuffer(VOID); // Returns a pointer to an off-screen buffer sufficient for the current video mode
Modified: trunk/reactos/ntoskrnl/mm/section.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=2... ============================================================================== --- trunk/reactos/ntoskrnl/mm/section.c (original) +++ trunk/reactos/ntoskrnl/mm/section.c Fri Mar 16 19:54:34 2007 @@ -3716,7 +3716,7 @@ if(SectionOffset != NULL) { ProbeForWriteLargeInteger(SectionOffset); - SafeSectionOffset = *SectionOffset; + SafeSectionOffset.QuadPart = PAGE_ROUND_DOWN(SectionOffset->QuadPart); } ProbeForWriteSize_t(ViewSize); SafeViewSize = *ViewSize; @@ -3735,7 +3735,8 @@ else { SafeBaseAddress = (BaseAddress != NULL ? *BaseAddress : NULL); - SafeSectionOffset.QuadPart = (SectionOffset != NULL ? SectionOffset->QuadPart : 0); + SafeSectionOffset.QuadPart = + (SectionOffset != NULL ? PAGE_ROUND_DOWN(SectionOffset->QuadPart) : 0); SafeViewSize = (ViewSize != NULL ? *ViewSize : 0); }