mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:42:56 +00:00
[NTVDM:VBE]: Don't crash if the video mode is invalid.
svn path=/trunk/; revision=73028
This commit is contained in:
parent
6fcebba53b
commit
1ef056a0ed
1 changed files with 1 additions and 0 deletions
|
@ -356,6 +356,7 @@ static VOID VbeSetExtendedRegisters(PSVGA_REGISTERS Registers)
|
||||||
BOOLEAN WINAPI VbeSetExtendedVideoMode(BYTE ModeNumber)
|
BOOLEAN WINAPI VbeSetExtendedVideoMode(BYTE ModeNumber)
|
||||||
{
|
{
|
||||||
PCVBE_MODE Mode = VbeGetModeByNumber(ModeNumber);
|
PCVBE_MODE Mode = VbeGetModeByNumber(ModeNumber);
|
||||||
|
if (Mode == NULL) return FALSE;
|
||||||
|
|
||||||
/* At this point, Mode->Registers shouldn't be NULL unless the mode is unimplemented */
|
/* At this point, Mode->Registers shouldn't be NULL unless the mode is unimplemented */
|
||||||
if (Mode->Registers == NULL)
|
if (Mode->Registers == NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue