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
3b69baae
Commit
3b69baae
authored
Jul 28, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Jul 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Skip unexpected completions in netconn_wait_overlapped_result().
parent
96b6bf61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
net.c
dlls/winhttp/net.c
+9
-8
No files found.
dlls/winhttp/net.c
View file @
3b69baae
...
...
@@ -56,15 +56,16 @@ BOOL netconn_wait_overlapped_result( struct netconn *conn, WSAOVERLAPPED *ovr, D
OVERLAPPED
*
completion_ovr
;
ULONG_PTR
key
;
if
(
!
GetQueuedCompletionStatus
(
conn
->
port
,
len
,
&
key
,
&
completion_ovr
,
INFINITE
)
)
while
(
1
)
{
WARN
(
"GetQueuedCompletionStatus failed, err %lu.
\n
"
,
GetLastError
()
);
return
FALSE
;
}
if
((
key
!=
conn
->
socket
&&
conn
->
socket
!=
-
1
)
||
completion_ovr
!=
(
OVERLAPPED
*
)
ovr
)
{
ERR
(
"Unexpected completion key %Ix, overlapped %p.
\n
"
,
key
,
completion_ovr
);
return
FALSE
;
if
(
!
GetQueuedCompletionStatus
(
conn
->
port
,
len
,
&
key
,
&
completion_ovr
,
INFINITE
))
{
WARN
(
"GetQueuedCompletionStatus failed, err %lu.
\n
"
,
GetLastError
()
);
return
FALSE
;
}
if
(
completion_ovr
==
(
OVERLAPPED
*
)
ovr
&&
(
key
==
conn
->
socket
||
conn
->
socket
==
-
1
))
break
;
ERR
(
"Unexpected completion key %Ix, completion ovr %p, ovr %p.
\n
"
,
key
,
completion_ovr
,
ovr
);
}
return
TRUE
;
}
...
...
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