https://git.reactos.org/?p=reactos.git;a=commitdiff;h=49c16e661acf0d73f1b9b475dce8ab1271ccb2d3
commit 49c16e661acf0d73f1b9b475dce8ab1271ccb2d3 Author: Timo Kreuzer <[email protected]> AuthorDate: Sun Jul 4 20:26:32 2021 +0200 Commit: Hervé Poussineau <[email protected]> CommitDate: Sat Jul 10 16:27:44 2021 +0200 [VIDEOPRT] Do not attach secondary devices to the device stack This fixes display on the primary screen. --- win32ss/drivers/videoprt/videoprt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32ss/drivers/videoprt/videoprt.c b/win32ss/drivers/videoprt/videoprt.c index e36e0ce6c7c..c0a1d446116 100644 --- a/win32ss/drivers/videoprt/videoprt.c +++ b/win32ss/drivers/videoprt/videoprt.c @@ -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);
