From: Matteo Bruni <mbruni(a)codeweavers.com> --- dlls/http.sys/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/http.sys/http.c b/dlls/http.sys/http.c index dfbbc1e0389..973ff91801d 100644 --- a/dlls/http.sys/http.c +++ b/dlls/http.sys/http.c @@ -973,7 +973,7 @@ static NTSTATUS http_receive_request(struct request_queue *queue, IRP *irp) TRACE("Queuing IRP %p.\n", irp); IoSetCancelRoutine(irp, http_receive_request_cancel); - if (irp->Cancel && !IoSetCancelRoutine(irp, NULL)) + if (irp->Cancel && IoSetCancelRoutine(irp, NULL)) { /* The IRP was canceled before we set the cancel routine. */ ret = STATUS_CANCELLED; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8930