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
49a2fb66
Commit
49a2fb66
authored
Dec 19, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Make sure the Content-Length header is set correctly when preparing the out pipe.
parent
3d9ba21d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+6
-2
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
49a2fb66
...
...
@@ -2321,14 +2321,17 @@ static RPC_STATUS rpcrt4_http_prepare_out_pipe(HINTERNET out_request, RpcHttpAsy
const
UUID
*
out_pipe_uuid
,
ULONG
*
flow_control_increment
,
BOOL
authorized
)
{
static
const
WCHAR
fmtW
[]
=
{
'C'
,
'o'
,
'n'
,
't'
,
'e'
,
'n'
,
't'
,
'-'
,
'L'
,
'e'
,
'n'
,
'g'
,
't'
,
'h'
,
':'
,
' '
,
'%'
,
'u'
,
'\r'
,
'\n'
,
0
};
BOOL
ret
;
RPC_STATUS
status
;
RpcPktHdr
*
hdr
;
BYTE
*
data_from_server
;
RpcPktHdr
pkt_from_server
;
ULONG
field1
,
field3
;
DWORD
bytes_read
;
DWORD
bytes_read
,
len
;
BYTE
buf
[
20
];
WCHAR
header
[
sizeof
(
fmtW
)
/
sizeof
(
fmtW
[
0
])
+
10
];
if
(
!
authorized
)
{
...
...
@@ -2344,7 +2347,8 @@ static RPC_STATUS rpcrt4_http_prepare_out_pipe(HINTERNET out_request, RpcHttpAsy
TRACE
(
"sending HTTP connect header to server
\n
"
);
prepare_async_request
(
async_data
);
ret
=
HttpSendRequestW
(
out_request
,
NULL
,
0
,
hdr
,
hdr
->
common
.
frag_len
);
len
=
sprintfW
(
header
,
fmtW
,
hdr
->
common
.
frag_len
);
ret
=
HttpSendRequestW
(
out_request
,
header
,
len
,
hdr
,
hdr
->
common
.
frag_len
);
status
=
wait_async_request
(
async_data
,
ret
,
cancel_event
);
RPCRT4_FreeHeader
(
hdr
);
if
(
status
!=
RPC_S_OK
)
return
status
;
...
...
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