mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[NTVDM]: Fix the fix of r67238 (inversion min/max).
svn path=/trunk/; revision=67261
This commit is contained in:
parent
daa2e87bfe
commit
24a86ea3e4
1 changed files with 2 additions and 2 deletions
|
@ -1910,7 +1910,7 @@ VOID NTAPI VgaReadMemory(ULONG Address, PVOID Buffer, ULONG Size)
|
|||
PUCHAR BufPtr = (PUCHAR)Buffer;
|
||||
|
||||
DPRINT("VgaReadMemory: Address 0x%08X, Size %lu\n", Address, Size);
|
||||
Address = min(max(Address, VgaGetVideoLimitAddress() - 1), VgaGetVideoBaseAddress());
|
||||
Address = min(max(Address, VgaGetVideoBaseAddress()), VgaGetVideoLimitAddress());
|
||||
Size = min(Size, VgaGetVideoLimitAddress() - Address + 1);
|
||||
|
||||
/* Ignore if video RAM access is disabled */
|
||||
|
@ -1939,7 +1939,7 @@ BOOLEAN NTAPI VgaWriteMemory(ULONG Address, PVOID Buffer, ULONG Size)
|
|||
PUCHAR BufPtr = (PUCHAR)Buffer;
|
||||
|
||||
DPRINT("VgaWriteMemory: Address 0x%08X, Size %lu\n", Address, Size);
|
||||
Address = min(max(Address, VgaGetVideoLimitAddress() - 1), VgaGetVideoBaseAddress());
|
||||
Address = min(max(Address, VgaGetVideoBaseAddress()), VgaGetVideoLimitAddress());
|
||||
Size = min(Size, VgaGetVideoLimitAddress() - Address + 1);
|
||||
|
||||
/* Ignore if video RAM access is disabled */
|
||||
|
|
Loading…
Reference in a new issue