From 780672a901c4a2077076af9170cd857e622a3140 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Tue, 13 Dec 2005 00:17:08 +0000 Subject: [PATCH] Add check for VbeModeInfo->PhysBasePtr != 0. svn path=/trunk/; revision=20139 --- reactos/drivers/video/miniport/vbe/vbemp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/video/miniport/vbe/vbemp.c b/reactos/drivers/video/miniport/vbe/vbemp.c index 51c59d99d57..b3d36103630 100644 --- a/reactos/drivers/video/miniport/vbe/vbemp.c +++ b/reactos/drivers/video/miniport/vbe/vbemp.c @@ -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) {