Initialized device lock event.

svn path=/trunk/; revision=2777
This commit is contained in:
Eric Kohl 2002-03-24 15:30:44 +00:00
parent e3879d11ec
commit 1bac32612a

View file

@ -1,4 +1,4 @@
/* $Id: device.c,v 1.35 2002/02/19 00:09:22 ekohl Exp $
/* $Id: device.c,v 1.36 2002/03/24 15:30:44 ekohl Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -701,6 +701,10 @@ IoCreateDevice(PDRIVER_OBJECT DriverObject,
CreatedDeviceObject->AlignmentRequirement = 1;
KeInitializeDeviceQueue(&CreatedDeviceObject->DeviceQueue);
KeInitializeEvent(&CreatedDeviceObject->DeviceLock,
SynchronizationEvent,
TRUE);
if (CreatedDeviceObject->DeviceType == FILE_DEVICE_DISK)
{
IoAttachVpb(CreatedDeviceObject);