From 3379de392489da92ed63f84bba93a96e03a7ef9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Wed, 13 Oct 2021 08:02:01 +0200 Subject: [PATCH] [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 --- win32ss/drivers/miniport/vbe/vbemp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/win32ss/drivers/miniport/vbe/vbemp.c b/win32ss/drivers/miniport/vbe/vbemp.c index 14eaac91061..68692647f6e 100644 --- a/win32ss/drivers/miniport/vbe/vbemp.c +++ b/win32ss/drivers/miniport/vbe/vbemp.c @@ -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.