https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cfdd483c0ee168529efc7…
commit cfdd483c0ee168529efc702c0711b285cf558453
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Tue Dec 10 13:17:17 2019 +0100
Commit: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito(a)reactos.org>
CommitDate: Tue Dec 10 13:17:17 2019 +0100
[VGA_NEW] Fix 2 'MAX_USHORT' typos in commented code (#2145)
---
win32ss/drivers/miniport/vga_new/vbemodes.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/win32ss/drivers/miniport/vga_new/vbemodes.c
b/win32ss/drivers/miniport/vga_new/vbemodes.c
index 04b9c2dddd2..11a5942c496 100644
--- a/win32ss/drivers/miniport/vga_new/vbemodes.c
+++ b/win32ss/drivers/miniport/vga_new/vbemodes.c
@@ -363,7 +363,7 @@ InitializeModeTable(IN PHW_DEVICE_EXTENSION VgaExtension)
{
/* Read the screen stride (scanline size) */
ScreenStride = RaiseToPower2(VbeModeInfo->BytesPerScanLine);
- //ASSERT(ScreenStride <= MAX_USHORT);
+ //ASSERT(ScreenStride <= MAXUSHORT);
VgaMode->wbytes = (USHORT)ScreenStride;
VideoDebugPrint((0, "ScanLines: %lx Stride: %lx\n",
VbeModeInfo->BytesPerScanLine, VgaMode->wbytes));
@@ -391,7 +391,7 @@ InitializeModeTable(IN PHW_DEVICE_EXTENSION VgaExtension)
VideoDebugPrint((0, "LINEAR MODE!!!\n"));
ScreenStride = (VbeVersion >= 0x300) ?
VbeModeInfo->LinBytesPerScanLine : 0;
if (!ScreenStride) ScreenStride = VbeModeInfo->BytesPerScanLine;
- //ASSERT(ScreenStride <= MAX_USHORT);
+ //ASSERT(ScreenStride <= MAXUSHORT);
VgaMode->wbytes = (USHORT)ScreenStride;
VideoDebugPrint((0, "ScanLines: %lx Stride: %lx\n",
VbeModeInfo->BytesPerScanLine, VgaMode->wbytes));