mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 04:37:15 +00:00
Verify VBE is found and not anything else, is a safe check.
svn path=/trunk/; revision=19499
This commit is contained in:
parent
8553d872c8
commit
9e0866bd57
1 changed files with 7 additions and 0 deletions
|
@ -241,6 +241,13 @@ VBEInitialize(PVOID HwDeviceExtension)
|
||||||
&VBEDeviceExtension->VbeInfo,
|
&VBEDeviceExtension->VbeInfo,
|
||||||
sizeof(VBEDeviceExtension->VbeInfo));
|
sizeof(VBEDeviceExtension->VbeInfo));
|
||||||
|
|
||||||
|
/* Verify VBE is found and not anýthing else */
|
||||||
|
if (strncmp(VBEDeviceExtension->VbeInfo.Signature,"VESA",4) != 0)
|
||||||
|
{
|
||||||
|
DPRINT("No VBE BIOS present\n");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Dectect Bad VBE BIOS some Graphice card report 0x200 when they are VBE 1.2 */
|
/* Dectect Bad VBE BIOS some Graphice card report 0x200 when they are VBE 1.2 */
|
||||||
if (VBEDeviceExtension->VbeInfo.OemVendorNamePtr == 0 && VBEDeviceExtension->VbeInfo.Version == 0x200)
|
if (VBEDeviceExtension->VbeInfo.OemVendorNamePtr == 0 && VBEDeviceExtension->VbeInfo.Version == 0x200)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue