Add check for VbeModeInfo->PhysBasePtr != 0.

svn path=/trunk/; revision=20139
This commit is contained in:
Filip Navara 2005-12-13 00:17:08 +00:00
parent e173575b57
commit 780672a901

View 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)
{