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
1de4129b
Commit
1de4129b
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: Properly handle async HTTP failures.
parent
9eeedc27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+9
-0
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
1de4129b
...
@@ -1844,6 +1844,7 @@ typedef struct _RpcHttpAsyncData
...
@@ -1844,6 +1844,7 @@ typedef struct _RpcHttpAsyncData
{
{
LONG
refs
;
LONG
refs
;
HANDLE
completion_event
;
HANDLE
completion_event
;
WORD
async_result
;
INTERNET_BUFFERSA
inet_buffers
;
INTERNET_BUFFERSA
inet_buffers
;
CRITICAL_SECTION
cs
;
CRITICAL_SECTION
cs
;
}
RpcHttpAsyncData
;
}
RpcHttpAsyncData
;
...
@@ -1897,6 +1898,11 @@ static RPC_STATUS wait_async_request(RpcHttpAsyncData *async_data, BOOL call_ret
...
@@ -1897,6 +1898,11 @@ static RPC_STATUS wait_async_request(RpcHttpAsyncData *async_data, BOOL call_ret
}
else
{
}
else
{
WaitForSingleObject
(
async_data
->
completion_event
,
INFINITE
);
WaitForSingleObject
(
async_data
->
completion_event
,
INFINITE
);
}
}
if
(
async_data
->
async_result
)
{
ERR
(
"Async request failed with error %d
\n
"
,
async_data
->
async_result
);
return
RPC_S_SERVER_UNAVAILABLE
;
}
return
RPC_S_OK
;
return
RPC_S_OK
;
}
}
...
@@ -2007,6 +2013,9 @@ static VOID WINAPI rpcrt4_http_internet_callback(
...
@@ -2007,6 +2013,9 @@ static VOID WINAPI rpcrt4_http_internet_callback(
TRACE
(
"INTERNET_STATUS_REQUEST_COMPLETED
\n
"
);
TRACE
(
"INTERNET_STATUS_REQUEST_COMPLETED
\n
"
);
if
(
async_data
)
if
(
async_data
)
{
{
INTERNET_ASYNC_RESULT
*
async_result
=
lpvStatusInformation
;
async_data
->
async_result
=
async_result
->
dwResult
?
ERROR_SUCCESS
:
async_result
->
dwError
;
SetEvent
(
async_data
->
completion_event
);
SetEvent
(
async_data
->
completion_event
);
RpcHttpAsyncData_Release
(
async_data
);
RpcHttpAsyncData_Release
(
async_data
);
}
}
...
...
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