mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
- Initialize the Lock value of a stream file object.
svn path=/trunk/; revision=13527
This commit is contained in:
parent
6277bda603
commit
516c6b3ffc
1 changed files with 1 additions and 0 deletions
|
@ -245,6 +245,7 @@ IoCreateStreamFileObject(PFILE_OBJECT FileObject,
|
||||||
|
|
||||||
// shouldn't we initialize the lock event, and several other things here too?
|
// shouldn't we initialize the lock event, and several other things here too?
|
||||||
KeInitializeEvent(&CreatedFileObject->Event, NotificationEvent, FALSE);
|
KeInitializeEvent(&CreatedFileObject->Event, NotificationEvent, FALSE);
|
||||||
|
KeInitializeEvent(&CreatedFileObject->Lock, SynchronizationEvent, TRUE);
|
||||||
|
|
||||||
return CreatedFileObject;
|
return CreatedFileObject;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue