Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cba1cfc6
Commit
cba1cfc6
authored
Aug 14, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Added prepare_async_request helper.
parent
567e49f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+11
-8
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
cba1cfc6
...
...
@@ -1870,6 +1870,12 @@ static ULONG RpcHttpAsyncData_Release(RpcHttpAsyncData *data)
return
refs
;
}
static
void
prepare_async_request
(
RpcHttpAsyncData
*
async_data
)
{
ResetEvent
(
async_data
->
completion_event
);
RpcHttpAsyncData_AddRef
(
async_data
);
}
typedef
struct
_RpcConnection_http
{
RpcConnection
common
;
...
...
@@ -2165,8 +2171,7 @@ static RPC_STATUS rpcrt4_http_prepare_in_pipe(HINTERNET in_request, RpcHttpAsync
DWORD
bytes_read
,
bytes_written
;
/* prepare in pipe */
ResetEvent
(
async_data
->
completion_event
);
RpcHttpAsyncData_AddRef
(
async_data
);
prepare_async_request
(
async_data
);
ret
=
HttpSendRequestW
(
in_request
,
NULL
,
0
,
NULL
,
0
);
if
(
!
ret
)
{
...
...
@@ -2189,8 +2194,7 @@ static RPC_STATUS rpcrt4_http_prepare_in_pipe(HINTERNET in_request, RpcHttpAsync
buffers_in
.
dwStructSize
=
sizeof
(
buffers_in
);
/* FIXME: get this from the registry */
buffers_in
.
dwBufferTotal
=
1024
*
1024
*
1024
;
/* 1Gb */
ResetEvent
(
async_data
->
completion_event
);
RpcHttpAsyncData_AddRef
(
async_data
);
prepare_async_request
(
async_data
);
ret
=
HttpSendRequestExW
(
in_request
,
&
buffers_in
,
NULL
,
0
,
0
);
if
(
!
ret
)
{
...
...
@@ -2279,8 +2283,7 @@ static RPC_STATUS rpcrt4_http_prepare_out_pipe(HINTERNET out_request,
RpcPktHdr
pkt_from_server
;
ULONG
field1
,
field3
;
ResetEvent
(
async_data
->
completion_event
);
RpcHttpAsyncData_AddRef
(
async_data
);
prepare_async_request
(
async_data
);
ret
=
HttpSendRequestW
(
out_request
,
NULL
,
0
,
NULL
,
0
);
if
(
!
ret
)
{
...
...
@@ -2301,8 +2304,8 @@ static RPC_STATUS rpcrt4_http_prepare_out_pipe(HINTERNET out_request,
hdr
=
RPCRT4_BuildHttpConnectHeader
(
0
,
TRUE
,
connection_uuid
,
out_pipe_uuid
,
NULL
);
if
(
!
hdr
)
return
RPC_S_OUT_OF_RESOURCES
;
ResetEvent
(
async_data
->
completion_event
);
RpcHttpAsyncData_AddRef
(
async_data
);
prepare_async_request
(
async_data
);
ret
=
HttpSendRequestW
(
out_request
,
NULL
,
0
,
hdr
,
hdr
->
common
.
frag_len
);
if
(
!
ret
)
{
...
...
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