https://git.reactos.org/?p=reactos.git;a=commitdiff;h=39d8a822d258b9c61faeeā¦
commit 39d8a822d258b9c61faee80bdf6d9621976eea59
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Tue Jul 13 08:29:11 2021 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu Jul 15 08:32:46 2021 +0200
[WIN32K] Fix detection of multiple display devices on VBox
---
win32ss/gdi/eng/device.c | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/win32ss/gdi/eng/device.c b/win32ss/gdi/eng/device.c
index 46b9716016f..deca6e7a9ff 100644
--- a/win32ss/gdi/eng/device.c
+++ b/win32ss/gdi/eng/device.c
@@ -92,14 +92,16 @@ EngpUpdateGraphicsDeviceList(VOID)
{
/* Save this as the VGA adapter */
if (!gpVgaGraphicsDevice)
+ {
gpVgaGraphicsDevice = pGraphicsDevice;
- TRACE("gpVgaGraphicsDevice = %p\n", gpVgaGraphicsDevice);
+ TRACE("gpVgaGraphicsDevice = %p\n", gpVgaGraphicsDevice);
+ }
}
- else
+
+ /* Set the first one as primary device */
+ if (!gpPrimaryGraphicsDevice)
{
- /* Set the first one as primary device */
- if (!gpPrimaryGraphicsDevice)
- gpPrimaryGraphicsDevice = pGraphicsDevice;
+ gpPrimaryGraphicsDevice = pGraphicsDevice;
TRACE("gpPrimaryGraphicsDevice = %p\n", gpPrimaryGraphicsDevice);
}
}