Author: fireball Date: Mon Oct 1 14:18:53 2007 New Revision: 29325
URL: http://svn.reactos.org/svn/reactos?rev=29325&view=rev Log: - 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.
Modified: trunk/reactos/drivers/video/videoprt/videoprt.c
Modified: trunk/reactos/drivers/video/videoprt/videoprt.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/vide... ============================================================================== --- trunk/reactos/drivers/video/videoprt/videoprt.c (original) +++ trunk/reactos/drivers/video/videoprt/videoprt.c Mon Oct 1 14:18:53 2007 @@ -202,6 +202,9 @@ /* Create a unicode device name. */ 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( @@ -1165,7 +1168,7 @@ IN ULONG Flag) { DPRINT1("VideoPortCreateSecondaryDisplay: Unimplemented.\n"); - return NO_ERROR; + return ERROR_DEV_NOT_EXIST; }
/*