[VGA_NEW]

Improve order of check against NULL and assignement. Patch by Victor Martinez.
CORE-8121 #resolve #comment Committed in r63340, thanks

svn path=/trunk/; revision=63340
This commit is contained in:
Timo Kreuzer 2014-05-17 22:55:22 +00:00
parent 1a918ac33b
commit 34ea0a3ea7

View file

@ -213,9 +213,10 @@ InitializeModeTable(IN PHW_DEVICE_EXTENSION VgaExtension)
&Length);
if (Status != NO_ERROR) return;
VbeInfo = VideoPortAllocatePool(VgaExtension, 1, sizeof(VBE_INFO), ' agV');
VbeModeInfo = &VbeInfo->Modes;
if (!VbeInfo) return;
VbeModeInfo = &VbeInfo->Modes;
/* Init VBE data and write to card buffer */
VideoDebugPrint((0, "have int10 data\n"));
VbeInfo->ModeArray[128] = 0xFFFF;