Initialized device lock event.
authorEric Kohl <eric.kohl@reactos.org>
Sun, 24 Mar 2002 15:30:44 +0000 (15:30 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 24 Mar 2002 15:30:44 +0000 (15:30 +0000)
svn path=/trunk/; revision=2777

reactos/ntoskrnl/io/device.c

index 5c8fbb8..3cde331 100644 (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);