From 82a49a076e2fabe2fba0204260a9f5bc0018e729 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Mon, 1 Oct 2007 10:18:53 +0000 Subject: [PATCH] - Make VideoPortCreateSecondaryDisplay() return an error instead of success, so that driver does not assume the SecondaryDeviceExtension was created for it. - Add one more DPRINT() to show the size of Device Extension miniport has asked for. See issue #2672 for more details. svn path=/trunk/; revision=29325 --- reactos/drivers/video/videoprt/videoprt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reactos/drivers/video/videoprt/videoprt.c b/reactos/drivers/video/videoprt/videoprt.c index 71f1e4cf3c9..3ffd215d398 100644 --- a/reactos/drivers/video/videoprt/videoprt.c +++ b/reactos/drivers/video/videoprt/videoprt.c @@ -203,6 +203,9 @@ IntVideoPortCreateAdapterDeviceObject( swprintf(DeviceBuffer, L"\\Device\\Video%lu", DeviceNumber); RtlInitUnicodeString(&DeviceName, DeviceBuffer); + DPRINT("HwDeviceExtension size is: 0x%x\n", + DriverExtension->InitializationData.HwDeviceExtensionSize); + /* Create the device object. */ Status = IoCreateDevice( DriverObject, @@ -1165,7 +1168,7 @@ VideoPortCreateSecondaryDisplay( IN ULONG Flag) { DPRINT1("VideoPortCreateSecondaryDisplay: Unimplemented.\n"); - return NO_ERROR; + return ERROR_DEV_NOT_EXIST; } /*