[VBEMP] Fail HwInitialize (ie IRP_MJ_CREATE) when /NOVESA switch is present

In that case, we want a simple VGA driver to drive the graphic adapter.

CORE-17789
This commit is contained in:
Hervé Poussineau 2021-10-13 08:02:01 +02:00
parent ac13f37d0a
commit 3379de3924

View file

@ -180,6 +180,13 @@ VBEInitialize(PVOID HwDeviceExtension)
ULONG CurrentMode;
PVBE_MODEINFO VbeModeInfo;
if (VideoPortIsNoVesa())
{
VBEDeviceExtension->Int10Interface.Version = 0;
VBEDeviceExtension->Int10Interface.Size = 0;
return FALSE;
}
/*
* Get the Int 10 interface that we will use for allocating real
* mode memory and calling the video BIOS.