[VIDEOPRT] Do not attach secondary devices to the device stack

This fixes display on the primary screen.
This commit is contained in:
Timo Kreuzer 2021-07-04 20:26:32 +02:00 committed by Hervé Poussineau
parent e9b5b22a8c
commit 49c16e661a

View file

@ -298,7 +298,7 @@ IntVideoPortCreateAdapterDeviceObject(
KeInitializeMutex(&DeviceExtension->DeviceLock, 0);
/* Attach the device. */
if (PhysicalDeviceObject != NULL)
if ((PhysicalDeviceObject != NULL) && (DisplayNumber == 0))
DeviceExtension->NextDeviceObject = IoAttachDeviceToDeviceStack(
*DeviceObject,
PhysicalDeviceObject);