Commit 0abc3245 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Return TRUE from WSAGetOverlappedResult() if the NT status denotes success.

parent 5a8dc6cd
......@@ -5738,7 +5738,7 @@ BOOL WINAPI WSAGetOverlappedResult( SOCKET s, LPWSAOVERLAPPED lpOverlapped,
*lpdwFlags = lpOverlapped->u.s.Offset;
SetLastError( NtStatusToWSAError(status) );
return !status;
return NT_SUCCESS( status );
}
......
......@@ -8690,7 +8690,6 @@ static void test_WSAGetOverlappedResult(void)
overlapped.Internal = status;
WSASetLastError(0xdeadbeef);
ret = WSAGetOverlappedResult(s, &overlapped, &size, FALSE, &flags);
todo_wine_if (expect_ret && status)
ok(ret == expect_ret, "status %#x: expected %d, got %d\n", status, expect_ret, ret);
if (ret)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment