Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ebca23da
Commit
ebca23da
authored
Aug 23, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http.sys: Fill out unknown verbs.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7a73d01f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
http.c
dlls/http.sys/http.c
+25
-0
No files found.
dlls/http.sys/http.c
View file @
ebca23da
...
@@ -277,6 +277,9 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
...
@@ -277,6 +277,9 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
/* First calculate the total buffer size needed for this IRP. */
/* First calculate the total buffer size needed for this IRP. */
if
(
conn
->
unk_verb_len
)
irp_size
+=
conn
->
unk_verb_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
;
...
@@ -300,6 +303,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
...
@@ -300,6 +303,7 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
if
(
params
.
bits
==
32
)
if
(
params
.
bits
==
32
)
{
{
struct
http_request_32
*
req
=
irp
->
AssociatedIrp
.
SystemBuffer
;
struct
http_request_32
*
req
=
irp
->
AssociatedIrp
.
SystemBuffer
;
char
*
buffer
=
irp
->
AssociatedIrp
.
SystemBuffer
;
offset
=
sizeof
(
*
req
);
offset
=
sizeof
(
*
req
);
...
@@ -307,11 +311,22 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
...
@@ -307,11 +311,22 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
req
->
UrlContext
=
conn
->
queue
->
context
;
req
->
UrlContext
=
conn
->
queue
->
context
;
req
->
Version
=
conn
->
version
;
req
->
Version
=
conn
->
version
;
req
->
Verb
=
conn
->
verb
;
req
->
Verb
=
conn
->
verb
;
req
->
UnknownVerbLength
=
conn
->
unk_verb_len
;
if
(
conn
->
unk_verb_len
)
{
req
->
pUnknownVerb
=
params
.
addr
+
offset
;
memcpy
(
buffer
+
offset
,
conn
->
buffer
,
conn
->
unk_verb_len
);
offset
+=
conn
->
unk_verb_len
;
buffer
[
offset
++
]
=
0
;
}
req
->
BytesReceived
=
conn
->
req_len
;
req
->
BytesReceived
=
conn
->
req_len
;
}
}
else
else
{
{
struct
http_request_64
*
req
=
irp
->
AssociatedIrp
.
SystemBuffer
;
struct
http_request_64
*
req
=
irp
->
AssociatedIrp
.
SystemBuffer
;
char
*
buffer
=
irp
->
AssociatedIrp
.
SystemBuffer
;
offset
=
sizeof
(
*
req
);
offset
=
sizeof
(
*
req
);
...
@@ -319,6 +334,16 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
...
@@ -319,6 +334,16 @@ static NTSTATUS complete_irp(struct connection *conn, IRP *irp)
req
->
UrlContext
=
conn
->
queue
->
context
;
req
->
UrlContext
=
conn
->
queue
->
context
;
req
->
Version
=
conn
->
version
;
req
->
Version
=
conn
->
version
;
req
->
Verb
=
conn
->
verb
;
req
->
Verb
=
conn
->
verb
;
req
->
UnknownVerbLength
=
conn
->
unk_verb_len
;
if
(
conn
->
unk_verb_len
)
{
req
->
pUnknownVerb
=
params
.
addr
+
offset
;
memcpy
(
buffer
+
offset
,
conn
->
buffer
,
conn
->
unk_verb_len
);
offset
+=
conn
->
unk_verb_len
;
buffer
[
offset
++
]
=
0
;
}
req
->
BytesReceived
=
conn
->
req_len
;
req
->
BytesReceived
=
conn
->
req_len
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment