[VGA_NEW] Fix 2 'MAX_USHORT' typos in commented code (#2145)
authorSerge Gautherie <32623169+SergeGautherie@users.noreply.github.com>
Tue, 10 Dec 2019 12:17:17 +0000 (13:17 +0100)
committerHermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
Tue, 10 Dec 2019 12:17:17 +0000 (13:17 +0100)
win32ss/drivers/miniport/vga_new/vbemodes.c

index 04b9c2d..11a5942 100644 (file)
@@ -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));