mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 01:42:30 +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
|
@ -51,6 +51,11 @@ GetAvailableModes(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Modes.NumModes == 0)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
*ModeInfoSize = Modes.ModeInformationLength;
|
*ModeInfoSize = Modes.ModeInformationLength;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue