mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[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:
parent
1a918ac33b
commit
34ea0a3ea7
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue