mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
Set the thread to the Allocated IRPs created by Io/Nt Query functions that didn't do this. This can cause problems if the thread is ever read on a completed request.
svn path=/trunk/; revision=10504
This commit is contained in:
parent
359fe88806
commit
7cf25ed92f
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: dir.c,v 1.21 2003/12/14 17:44:02 hbirr Exp $
|
||||
/* $Id: dir.c,v 1.22 2004/08/12 06:15:49 ion Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -125,6 +125,7 @@ NtQueryDirectoryFile(
|
|||
Irp->RequestorMode = PreviousMode;
|
||||
Irp->UserIosb = IoStatusBlock;
|
||||
Irp->UserEvent = &FileObject->Event;
|
||||
Irp->Tail.Overlay.Thread = PsGetCurrentThread();
|
||||
KeResetEvent( &FileObject->Event );
|
||||
Irp->UserBuffer=FileInformation;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: file.c,v 1.31 2004/07/24 01:28:04 navaraf Exp $
|
||||
/* $Id: file.c,v 1.32 2004/08/12 06:15:50 ion Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -91,6 +91,7 @@ NtQueryInformationFile(HANDLE FileHandle,
|
|||
Irp->AssociatedIrp.SystemBuffer = SystemBuffer;
|
||||
Irp->UserIosb = IoStatusBlock;
|
||||
Irp->UserEvent = &FileObject->Event;
|
||||
Irp->Tail.Overlay.Thread = PsGetCurrentThread();
|
||||
KeResetEvent( &FileObject->Event );
|
||||
|
||||
StackPtr = IoGetNextIrpStackLocation(Irp);
|
||||
|
@ -339,6 +340,7 @@ IoQueryFileInformation(IN PFILE_OBJECT FileObject,
|
|||
Irp->AssociatedIrp.SystemBuffer = FileInformation;
|
||||
Irp->UserIosb = &IoStatusBlock;
|
||||
Irp->UserEvent = &FileObject->Event;
|
||||
Irp->Tail.Overlay.Thread = PsGetCurrentThread();
|
||||
KeResetEvent( &FileObject->Event );
|
||||
|
||||
StackPtr = IoGetNextIrpStackLocation(Irp);
|
||||
|
|
Loading…
Reference in a new issue