http.sys: Avoid touching the IRP structure after queueing it.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d7c9cd2e2f
commit
a7908da4cd
|
@ -1233,6 +1233,7 @@ static NTSTATUS http_receive_request(struct request_queue *queue, IRP *irp)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
IoMarkIrpPending(irp);
|
||||||
InsertTailList(&queue->irp_queue, &irp->Tail.Overlay.ListEntry);
|
InsertTailList(&queue->irp_queue, &irp->Tail.Overlay.ListEntry);
|
||||||
ret = STATUS_PENDING;
|
ret = STATUS_PENDING;
|
||||||
}
|
}
|
||||||
|
@ -1362,8 +1363,6 @@ static NTSTATUS WINAPI dispatch_ioctl(DEVICE_OBJECT *device, IRP *irp)
|
||||||
irp->IoStatus.Status = ret;
|
irp->IoStatus.Status = ret;
|
||||||
IoCompleteRequest(irp, IO_NO_INCREMENT);
|
IoCompleteRequest(irp, IO_NO_INCREMENT);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
IoMarkIrpPending(irp);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue