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
5a8dc6cd
Commit
5a8dc6cd
authored
May 06, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
May 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws2_32: Use NtStatusToWSAError() in WSAGetOverlappedResult().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
54a39d57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
socket.c
dlls/ws2_32/socket.c
+1
-1
sock.c
dlls/ws2_32/tests/sock.c
+3
-8
No files found.
dlls/ws2_32/socket.c
View file @
5a8dc6cd
...
...
@@ -5737,7 +5737,7 @@ BOOL WINAPI WSAGetOverlappedResult( SOCKET s, LPWSAOVERLAPPED lpOverlapped,
if
(
lpdwFlags
)
*
lpdwFlags
=
lpOverlapped
->
u
.
s
.
Offset
;
if
(
status
)
SetLastError
(
RtlNtStatusToDos
Error
(
status
)
);
SetLastError
(
NtStatusToWSA
Error
(
status
)
);
return
!
status
;
}
...
...
dlls/ws2_32/tests/sock.c
View file @
5a8dc6cd
...
...
@@ -8701,14 +8701,9 @@ static void test_WSAGetOverlappedResult(void)
}
else
{
todo_wine_if
(
!
NT_SUCCESS
(
status
)
&&
LOWORD
(
status
)
!=
WSAEINVAL
&&
status
!=
STATUS_CANCELLED
&&
status
!=
(
0x80070000
|
ERROR_IO_INCOMPLETE
)
&&
status
!=
(
0xc0070000
|
ERROR_IO_INCOMPLETE
))
ok
(
WSAGetLastError
()
==
expect
||
(
status
==
(
0xc0070000
|
ERROR_IO_INCOMPLETE
)
&&
WSAGetLastError
()
==
WSAEINVAL
),
/* < win8 */
"status %#x: expected error %u, got %u
\n
"
,
status
,
expect
,
WSAGetLastError
());
ok
(
WSAGetLastError
()
==
expect
||
(
status
==
(
0xc0070000
|
ERROR_IO_INCOMPLETE
)
&&
WSAGetLastError
()
==
WSAEINVAL
),
/* < win8 */
"status %#x: expected error %u, got %u
\n
"
,
status
,
expect
,
WSAGetLastError
());
}
}
}
...
...
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