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
8de2369d
Commit
8de2369d
authored
Oct 02, 2019
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Propagate request errors in request_wait.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
310620c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
request.c
dlls/winhttp/request.c
+6
-7
No files found.
dlls/winhttp/request.c
View file @
8de2369d
...
...
@@ -3799,7 +3799,9 @@ static void CALLBACK wait_status_callback( HINTERNET handle, DWORD_PTR context,
request
->
error
=
result
->
dwError
;
break
;
}
default:
break
;
default:
request
->
error
=
ERROR_SUCCESS
;
break
;
}
SetEvent
(
request
->
wait
);
}
...
...
@@ -4012,18 +4014,17 @@ static DWORD request_wait( struct winhttp_request *request, DWORD timeout )
switch
(
err
)
{
case
WAIT_OBJECT_0
:
ret
=
ERROR_SUCCESS
;
ret
=
request
->
error
;
break
;
case
WAIT_TIMEOUT
:
ret
=
ERROR_TIMEOUT
;
break
;
case
WAIT_FAILED
:
default:
ret
=
GetLastError
();
break
;
}
EnterCriticalSection
(
&
request
->
cs
);
if
(
!
ret
)
request
->
proc_running
=
FALSE
;
if
(
err
==
WAIT_OBJECT_0
)
request
->
proc_running
=
FALSE
;
return
ret
;
}
...
...
@@ -4547,11 +4548,9 @@ static HRESULT WINAPI winhttp_request_WaitForResponse(
err
=
ERROR_SUCCESS
;
break
;
case
ERROR_SUCCESS
:
default
:
if
(
succeeded
)
*
succeeded
=
VARIANT_TRUE
;
break
;
default:
break
;
}
LeaveCriticalSection
(
&
request
->
cs
);
return
HRESULT_FROM_WIN32
(
err
);
...
...
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