mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +00:00
Initialized device lock event.
svn path=/trunk/; revision=2777
This commit is contained in:
parent
e3879d11ec
commit
1bac32612a
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue