[PATCH] http.sys: Avoid touching the IRP structure after queueing it.
Zebediah Figura
z.figura12 at gmail.com
Sun Apr 26 21:13:18 CDT 2020
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/http.sys/http.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/dlls/http.sys/http.c b/dlls/http.sys/http.c
index 90bef71399..82af6a5be6 100644
--- a/dlls/http.sys/http.c
+++ b/dlls/http.sys/http.c
@@ -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;
}
--
2.26.2
More information about the wine-devel
mailing list