Add check for VbeModeInfo->PhysBasePtr != 0.
authorFilip Navara <filip.navara@gmail.com>
Tue, 13 Dec 2005 00:17:08 +0000 (00:17 +0000)
committerFilip Navara <filip.navara@gmail.com>
Tue, 13 Dec 2005 00:17:08 +0000 (00:17 +0000)
svn path=/trunk/; revision=20139

reactos/drivers/video/miniport/vbe/vbemp.c

index 51c59d9..b3d3610 100644 (file)
@@ -344,7 +344,8 @@ VBEInitialize(PVOID HwDeviceExtension)
           VbeModeInfo->XResolution >= 640 &&
           VbeModeInfo->YResolution >= 480 &&
           (VbeModeInfo->MemoryModel == VBE_MEMORYMODEL_PACKEDPIXEL ||
-           VbeModeInfo->MemoryModel == VBE_MEMORYMODEL_DIRECTCOLOR))
+           VbeModeInfo->MemoryModel == VBE_MEMORYMODEL_DIRECTCOLOR) &&
+          VbeModeInfo->PhysBasePtr != 0)
       {
          if (VbeModeInfo->ModeAttributes & VBE_MODEATTR_LINEAR)
          {