diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-19 05:16:13 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-19 05:16:13 +0000 |
commit | 2e865ba81e66c30f729e7243fb0b47f3eea39521 (patch) | |
tree | a8033b1db570b32ed01dc6e6259e3ce876e786c3 /win32 | |
parent | 3e8672094de1b6b568147140ad89eaa5b9ae327d (diff) | |
download | ruby-2e865ba81e66c30f729e7243fb0b47f3eea39521.tar.gz |
* win32/win32.c (finish_overlapped_socket): return value of this
function should be only 0 or SOCKET_ERROR.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index 6ebd9e433c..d6ffec6075 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3269,15 +3269,17 @@ finish_overlapped_socket(BOOL input, SOCKET s, WSAOVERLAPPED *wol, int result, D result = WSAGetOverlappedResult(s, wol, &size, TRUE, &flg) ); if (result) { + result = 0; *len = size; break; } + result = SOCKET_ERROR; /* thru */ default: if ((err = WSAGetLastError()) == WSAECONNABORTED && !input) errno = EPIPE; else if (err == WSAEMSGSIZE && input) { - result = TRUE; + result = 0; *len = size; break; } |