Fix return type of WSAGetOverlappedResult.

GitOrigin-RevId: d6e8575d2b8c15ce1f285de2eae573e7bf6f46fa
This commit is contained in:
levlam 2019-04-26 05:15:26 +03:00
parent c0068f0810
commit 62fb384ec6

View File

@ -469,7 +469,7 @@ Status get_socket_pending_error(const NativeFd &fd, WSAOVERLAPPED *overlapped, S
// https://stackoverflow.com/questions/28925003/calling-wsagetlasterror-from-an-iocp-thread-return-incorrect-result // https://stackoverflow.com/questions/28925003/calling-wsagetlasterror-from-an-iocp-thread-return-incorrect-result
DWORD num_bytes = 0; DWORD num_bytes = 0;
DWORD flags = 0; DWORD flags = 0;
bool success = WSAGetOverlappedResult(fd.socket(), overlapped, &num_bytes, false, &flags); BOOL success = WSAGetOverlappedResult(fd.socket(), overlapped, &num_bytes, false, &flags);
if (success) { if (success) {
LOG(ERROR) << "WSAGetOverlappedResult succeded after " << iocp_error; LOG(ERROR) << "WSAGetOverlappedResult succeded after " << iocp_error;
return iocp_error; return iocp_error;