mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
[KBDCLASS/MOUCLASS]
- Fix a race condition in IRP queuing that can cause an assertion to fail in the cancellation routine svn path=/trunk/; revision=54041
This commit is contained in:
parent
bfafe61483
commit
8b969e61ec
|
@ -804,6 +804,8 @@ HandleReadIrp(
|
|||
}
|
||||
else
|
||||
{
|
||||
IoMarkIrpPending(Irp);
|
||||
DeviceExtension->PendingIrp = Irp;
|
||||
(VOID)IoSetCancelRoutine(Irp, ClassCancelRoutine);
|
||||
if (Irp->Cancel && IoSetCancelRoutine(Irp, NULL))
|
||||
{
|
||||
|
@ -812,8 +814,6 @@ HandleReadIrp(
|
|||
}
|
||||
else
|
||||
{
|
||||
IoMarkIrpPending(Irp);
|
||||
DeviceExtension->PendingIrp = Irp;
|
||||
Status = STATUS_PENDING;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -781,6 +781,8 @@ HandleReadIrp(
|
|||
}
|
||||
else
|
||||
{
|
||||
IoMarkIrpPending(Irp);
|
||||
DeviceExtension->PendingIrp = Irp;
|
||||
(VOID)IoSetCancelRoutine(Irp, ClassCancelRoutine);
|
||||
if (Irp->Cancel && IoSetCancelRoutine(Irp, NULL))
|
||||
{
|
||||
|
@ -789,8 +791,6 @@ HandleReadIrp(
|
|||
}
|
||||
else
|
||||
{
|
||||
IoMarkIrpPending(Irp);
|
||||
DeviceExtension->PendingIrp = Irp;
|
||||
Status = STATUS_PENDING;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue