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
|
||||
{
|
||||
IoMarkIrpPending(irp);
|
||||
InsertTailList(&queue->irp_queue, &irp->Tail.Overlay.ListEntry);
|
||||
ret = STATUS_PENDING;
|
||||
}
|
||||
|
@ -1362,8 +1363,6 @@ static NTSTATUS WINAPI dispatch_ioctl(DEVICE_OBJECT *device, IRP *irp)
|
|||
irp->IoStatus.Status = ret;
|
||||
IoCompleteRequest(irp, IO_NO_INCREMENT);
|
||||
}
|
||||
else
|
||||
IoMarkIrpPending(irp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue