IoCreateDevice(): Fixed missing initialization of 'CreatedDeviceObject->Vpb'
[reactos.git] / ntoskrnl / io / device.c
index fac0268..40551eb 100644 (file)
@@ -710,6 +710,8 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
   CreatedDeviceObject->CurrentIrp = NULL;
   CreatedDeviceObject->Flags = 0;
   CreatedDeviceObject->Characteristics = DeviceCharacteristics;
+  CreatedDeviceObject->Timer = NULL;
+  CreatedDeviceObject->Vpb = NULL;
 
 #ifndef LIBCAPTIVE
   CreatedDeviceObject->DeviceExtension =