From 1bac32612a559f017d529b41a4680f2eff83a568 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 24 Mar 2002 15:30:44 +0000 Subject: [PATCH] Initialized device lock event. svn path=/trunk/; revision=2777 --- reactos/ntoskrnl/io/device.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/io/device.c b/reactos/ntoskrnl/io/device.c index 5c8fbb8bd5d..3cde331d6ba 100644 --- a/reactos/ntoskrnl/io/device.c +++ b/reactos/ntoskrnl/io/device.c @@ -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); -- 2.17.1