- Put the event from file object as user event into the irp in IopCloseFile

and IopDeleteFile. This is necessary because the event from fileobject
  isn't set automatically after a close/cleanup call.

svn path=/trunk/; revision=9339
This commit is contained in:
Hartmut Birr 2004-05-09 15:02:07 +00:00
parent ad49710348
commit c1574ff8d1

View file

@ -1,4 +1,4 @@
/* $Id: iomgr.c,v 1.47 2004/05/02 19:33:50 ekohl Exp $
/* $Id: iomgr.c,v 1.48 2004/05/09 15:02:07 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -78,7 +78,7 @@ IopCloseFile(PVOID ObjectBody,
NULL,
0,
NULL,
NULL,
&FileObject->Event,
NULL);
StackPtr = IoGetNextIrpStackLocation(Irp);
StackPtr->FileObject = FileObject;
@ -117,7 +117,7 @@ IopDeleteFile(PVOID ObjectBody)
NULL,
0,
NULL,
NULL,
&FileObject->Event,
NULL);
Irp->Flags |= IRP_CLOSE_OPERATION;
StackPtr = IoGetNextIrpStackLocation(Irp);