mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[FRAMEBUF] Early return if we got 0 available mode from video driver
This prevents allocating 0 bytes of memory a few lines later.
This commit is contained in:
parent
f26fe3f1f8
commit
9b5d029c7a
1 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,11 @@ GetAvailableModes(
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (Modes.NumModes == 0)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
*ModeInfoSize = Modes.ModeInformationLength;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue