mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 06:33:01 +00:00
[NTOS] IoSetHardErrorOrVerifyDevice(): Check whether the IRP is not associated with any thread.
This commit is contained in:
parent
f6eb13a969
commit
41e7c818d1
1 changed files with 8 additions and 0 deletions
|
@ -316,6 +316,14 @@ NTAPI
|
||||||
IoSetHardErrorOrVerifyDevice(IN PIRP Irp,
|
IoSetHardErrorOrVerifyDevice(IN PIRP Irp,
|
||||||
IN PDEVICE_OBJECT DeviceObject)
|
IN PDEVICE_OBJECT DeviceObject)
|
||||||
{
|
{
|
||||||
|
/* Ignore in case the IRP is not associated with any thread */
|
||||||
|
if (!Irp->Tail.Overlay.Thread)
|
||||||
|
{
|
||||||
|
DPRINT1("IoSetHardErrorOrVerifyDevice(0x%p, 0x%p): IRP has no thread, ignoring.\n"
|
||||||
|
Irp, DeviceObject);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set the pointer in the IRP */
|
/* Set the pointer in the IRP */
|
||||||
Irp->Tail.Overlay.Thread->DeviceToVerify = DeviceObject;
|
Irp->Tail.Overlay.Thread->DeviceToVerify = DeviceObject;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue