mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[NTOS] IoSetHardErrorOrVerifyDevice(): Check whether the IRP is not associated with any thread.
This commit is contained in:
@@ -316,6 +316,14 @@ NTAPI
|
||||
IoSetHardErrorOrVerifyDevice(IN PIRP Irp,
|
||||
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 */
|
||||
Irp->Tail.Overlay.Thread->DeviceToVerify = DeviceObject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user