mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
svn path=/trunk/; revision=26117
This commit is contained in:
parent
6f562dec4a
commit
93a03949bf
2 changed files with 4 additions and 3 deletions
|
@ -29,7 +29,7 @@ typedef struct
|
||||||
|
|
||||||
extern PVOID VideoOffScreenBuffer;
|
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
|
PVOID VideoAllocateOffScreenBuffer(VOID); // Returns a pointer to an off-screen buffer sufficient for the current video mode
|
||||||
|
|
||||||
|
|
|
@ -3716,7 +3716,7 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
||||||
if(SectionOffset != NULL)
|
if(SectionOffset != NULL)
|
||||||
{
|
{
|
||||||
ProbeForWriteLargeInteger(SectionOffset);
|
ProbeForWriteLargeInteger(SectionOffset);
|
||||||
SafeSectionOffset = *SectionOffset;
|
SafeSectionOffset.QuadPart = PAGE_ROUND_DOWN(SectionOffset->QuadPart);
|
||||||
}
|
}
|
||||||
ProbeForWriteSize_t(ViewSize);
|
ProbeForWriteSize_t(ViewSize);
|
||||||
SafeViewSize = *ViewSize;
|
SafeViewSize = *ViewSize;
|
||||||
|
@ -3735,7 +3735,8 @@ NtMapViewOfSection(IN HANDLE SectionHandle,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SafeBaseAddress = (BaseAddress != NULL ? *BaseAddress : NULL);
|
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);
|
SafeViewSize = (ViewSize != NULL ? *ViewSize : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue