mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
- Save the device object for dereferencing before the worker routine is called (IoWorkItemCallback).
svn path=/trunk/; revision=4412
This commit is contained in:
parent
457a70030c
commit
2aef8289eb
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: iowork.c,v 1.2 2002/10/05 10:53:37 dwelch Exp $
|
/* $Id: iowork.c,v 1.3 2003/03/23 10:50:13 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -38,8 +38,9 @@ VOID STDCALL STATIC
|
||||||
IoWorkItemCallback(PVOID Parameter)
|
IoWorkItemCallback(PVOID Parameter)
|
||||||
{
|
{
|
||||||
PIO_WORKITEM IoWorkItem = (PIO_WORKITEM)Parameter;
|
PIO_WORKITEM IoWorkItem = (PIO_WORKITEM)Parameter;
|
||||||
|
PDEVICE_OBJECT DeviceObject = IoWorkItem->DeviceObject;
|
||||||
IoWorkItem->WorkerRoutine(IoWorkItem->DeviceObject, IoWorkItem->Context);
|
IoWorkItem->WorkerRoutine(IoWorkItem->DeviceObject, IoWorkItem->Context);
|
||||||
ObDereferenceObject(IoWorkItem->DeviceObject);
|
ObDereferenceObject(DeviceObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID STDCALL
|
VOID STDCALL
|
||||||
|
|
Loading…
Reference in a new issue