https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3379de392489da92ed63f…
commit 3379de392489da92ed63f84bba93a96e03a7ef9e
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Wed Oct 13 08:02:01 2021 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Thu Oct 14 23:39:30 2021 +0200
[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.