ZeroMemory the correct amount of bytes

svn path=/trunk/; revision=27396
This commit is contained in:
Christoph von Wittich 2007-07-05 01:22:40 +00:00
parent f1a7f30887
commit 9699e0506c

View file

@ -671,7 +671,7 @@ ClassAddDevice(
}
DeviceExtension = (PPORT_DEVICE_EXTENSION)Fdo->DeviceExtension;
RtlZeroMemory(DeviceExtension, sizeof(CLASS_DEVICE_EXTENSION));
RtlZeroMemory(DeviceExtension, sizeof(PORT_DEVICE_EXTENSION));
DeviceExtension->Common.IsClassDO = FALSE;
DeviceExtension->DeviceObject = Fdo;
DeviceExtension->PnpState = dsStopped;