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
5a94affc
Commit
5a94affc
authored
Nov 28, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Dec 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Factor out queue_receive_response().
parent
aa8f97e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
request.c
dlls/winhttp/request.c
+15
-14
No files found.
dlls/winhttp/request.c
View file @
5a94affc
...
...
@@ -2846,6 +2846,19 @@ static DWORD handle_passport_redirect( struct request *request )
return
ERROR_SUCCESS
;
}
static
void
task_receive_response
(
void
*
ctx
,
BOOL
abort
);
static
DWORD
queue_receive_response
(
struct
request
*
request
)
{
struct
receive_response
*
r
;
DWORD
ret
;
if
(
!
(
r
=
malloc
(
sizeof
(
*
r
)
)))
return
ERROR_OUTOFMEMORY
;
if
((
ret
=
queue_task
(
&
request
->
queue
,
task_receive_response
,
&
r
->
task_hdr
,
&
request
->
hdr
)))
free
(
r
);
return
ret
;
}
static
DWORD
receive_response
(
struct
request
*
request
,
BOOL
async
)
{
DWORD
ret
,
size
,
query
,
status
;
...
...
@@ -2954,20 +2967,8 @@ BOOL WINAPI WinHttpReceiveResponse( HINTERNET hrequest, LPVOID reserved )
return
FALSE
;
}
if
(
request
->
connect
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
)
{
struct
receive_response
*
r
;
if
(
!
(
r
=
malloc
(
sizeof
(
*
r
)
)))
{
release_object
(
&
request
->
hdr
);
SetLastError
(
ERROR_OUTOFMEMORY
);
return
FALSE
;
}
if
((
ret
=
queue_task
(
&
request
->
queue
,
task_receive_response
,
&
r
->
task_hdr
,
&
request
->
hdr
)))
free
(
r
);
}
else
ret
=
receive_response
(
request
,
FALSE
);
if
(
request
->
connect
->
hdr
.
flags
&
WINHTTP_FLAG_ASYNC
)
ret
=
queue_receive_response
(
request
);
else
ret
=
receive_response
(
request
,
FALSE
);
release_object
(
&
request
->
hdr
);
SetLastError
(
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