[WIN32K] Fix detection of multiple display devices on VBox

This commit is contained in:
Timo Kreuzer 2021-07-13 08:29:11 +02:00
parent 2210d23fc7
commit 39d8a822d2

View file

@ -92,13 +92,15 @@ EngpUpdateGraphicsDeviceList(VOID)
{ {
/* Save this as the VGA adapter */ /* Save this as the VGA adapter */
if (!gpVgaGraphicsDevice) if (!gpVgaGraphicsDevice)
{
gpVgaGraphicsDevice = pGraphicsDevice; gpVgaGraphicsDevice = pGraphicsDevice;
TRACE("gpVgaGraphicsDevice = %p\n", gpVgaGraphicsDevice); TRACE("gpVgaGraphicsDevice = %p\n", gpVgaGraphicsDevice);
} }
else }
{
/* Set the first one as primary device */ /* Set the first one as primary device */
if (!gpPrimaryGraphicsDevice) if (!gpPrimaryGraphicsDevice)
{
gpPrimaryGraphicsDevice = pGraphicsDevice; gpPrimaryGraphicsDevice = pGraphicsDevice;
TRACE("gpPrimaryGraphicsDevice = %p\n", gpPrimaryGraphicsDevice); TRACE("gpPrimaryGraphicsDevice = %p\n", gpPrimaryGraphicsDevice);
} }