Commit d5ec9fa7 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

http.sys: Fill out the raw URL.

parent d95bffda
...@@ -279,6 +279,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp) ...@@ -279,6 +279,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
if (conn->unk_verb_len) if (conn->unk_verb_len)
irp_size += conn->unk_verb_len + 1; irp_size += conn->unk_verb_len + 1;
irp_size += conn->url_len + 1;
TRACE("Need %u bytes, have %u.\n", irp_size, output_len); TRACE("Need %u bytes, have %u.\n", irp_size, output_len);
irp->IoStatus.Information = irp_size; irp->IoStatus.Information = irp_size;
...@@ -312,6 +313,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp) ...@@ -312,6 +313,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
req->Version = conn->version; req->Version = conn->version;
req->Verb = conn->verb; req->Verb = conn->verb;
req->UnknownVerbLength = conn->unk_verb_len; req->UnknownVerbLength = conn->unk_verb_len;
req->RawUrlLength = conn->url_len;
if (conn->unk_verb_len) if (conn->unk_verb_len)
{ {
...@@ -321,6 +323,11 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp) ...@@ -321,6 +323,11 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
buffer[offset++] = 0; buffer[offset++] = 0;
} }
req->pRawUrl = params.addr + offset;
memcpy(buffer + offset, conn->url, conn->url_len);
offset += conn->url_len;
buffer[offset++] = 0;
req->BytesReceived = conn->req_len; req->BytesReceived = conn->req_len;
} }
else else
...@@ -335,6 +342,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp) ...@@ -335,6 +342,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
req->Version = conn->version; req->Version = conn->version;
req->Verb = conn->verb; req->Verb = conn->verb;
req->UnknownVerbLength = conn->unk_verb_len; req->UnknownVerbLength = conn->unk_verb_len;
req->RawUrlLength = conn->url_len;
if (conn->unk_verb_len) if (conn->unk_verb_len)
{ {
...@@ -344,6 +352,11 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp) ...@@ -344,6 +352,11 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
buffer[offset++] = 0; buffer[offset++] = 0;
} }
req->pRawUrl = params.addr + offset;
memcpy(buffer + offset, conn->url, conn->url_len);
offset += conn->url_len;
buffer[offset++] = 0;
req->BytesReceived = conn->req_len; req->BytesReceived = conn->req_len;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment