mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:16:11 +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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Modes.NumModes == 0)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
*ModeInfoSize = Modes.ModeInformationLength;
|
*ModeInfoSize = Modes.ModeInformationLength;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue