- 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
This commit is contained in:
Aleksey Bragin 2007-10-01 10:18:53 +00:00
parent 6f2304890d
commit 82a49a076e

View file

@ -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;
}
/*