ZeroMemory the correct amount of bytes

svn path=/trunk/; revision=27398
This commit is contained in:
Hervé Poussineau 2007-07-05 07:05:05 +00:00
parent 7f02b7b93c
commit 1cf915a077

View file

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