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
dae64e2d
Commit
dae64e2d
authored
Jun 08, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Jun 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Introduce netconn_wait_overlapped_result() helper.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
parent
61ad0b84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
net.c
dlls/winhttp/net.c
+7
-0
request.c
dlls/winhttp/request.c
+2
-2
winhttp_private.h
dlls/winhttp/winhttp_private.h
+1
-0
No files found.
dlls/winhttp/net.c
View file @
dae64e2d
...
...
@@ -51,6 +51,13 @@ static int sock_send(int fd, const void *msg, size_t len, WSAOVERLAPPED *ovr)
return
-
1
;
}
BOOL
netconn_wait_overlapped_result
(
struct
netconn
*
conn
,
WSAOVERLAPPED
*
ovr
,
DWORD
*
len
)
{
DWORD
retflags
;
return
WSAGetOverlappedResult
(
conn
->
socket
,
ovr
,
len
,
TRUE
,
&
retflags
);
}
static
int
sock_recv
(
int
fd
,
void
*
msg
,
size_t
len
,
int
flags
)
{
int
ret
;
...
...
dlls/winhttp/request.c
View file @
dae64e2d
...
...
@@ -3336,9 +3336,9 @@ static DWORD send_frame( struct socket *socket, enum socket_opcode opcode, USHOR
static
DWORD
complete_send_frame
(
struct
socket
*
socket
,
WSAOVERLAPPED
*
ovr
,
const
char
*
buf
)
{
DWORD
ret
,
retflags
,
len
,
i
;
DWORD
ret
,
len
,
i
;
if
(
!
WSAGetOverlappedResult
(
socket
->
request
->
netconn
->
socket
,
ovr
,
&
len
,
TRUE
,
&
retflags
))
if
(
!
netconn_wait_overlapped_result
(
socket
->
request
->
netconn
,
ovr
,
&
len
))
return
WSAGetLastError
();
if
(
socket
->
bytes_in_send_frame_buffer
)
...
...
dlls/winhttp/winhttp_private.h
View file @
dae64e2d
...
...
@@ -371,6 +371,7 @@ DWORD netconn_recv( struct netconn *, void *, size_t, int, int * ) DECLSPEC_HIDD
DWORD
netconn_resolve
(
WCHAR
*
,
INTERNET_PORT
,
struct
sockaddr_storage
*
,
int
)
DECLSPEC_HIDDEN
;
DWORD
netconn_secure_connect
(
struct
netconn
*
,
WCHAR
*
,
DWORD
,
CredHandle
*
,
BOOL
)
DECLSPEC_HIDDEN
;
DWORD
netconn_send
(
struct
netconn
*
,
const
void
*
,
size_t
,
int
*
,
WSAOVERLAPPED
*
)
DECLSPEC_HIDDEN
;
BOOL
netconn_wait_overlapped_result
(
struct
netconn
*
conn
,
WSAOVERLAPPED
*
ovr
,
DWORD
*
len
)
DECLSPEC_HIDDEN
;
void
netconn_cancel_io
(
struct
netconn
*
conn
)
DECLSPEC_HIDDEN
;
DWORD
netconn_set_timeout
(
struct
netconn
*
,
BOOL
,
int
)
DECLSPEC_HIDDEN
;
BOOL
netconn_is_alive
(
struct
netconn
*
)
DECLSPEC_HIDDEN
;
...
...
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