summaryrefslogtreecommitdiff
path: root/drivers/windows/stream_peer_tcp_winsock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/windows/stream_peer_tcp_winsock.cpp')
-rw-r--r--drivers/windows/stream_peer_tcp_winsock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/windows/stream_peer_tcp_winsock.cpp b/drivers/windows/stream_peer_tcp_winsock.cpp
index cb501ce35d..19c937170b 100644
--- a/drivers/windows/stream_peer_tcp_winsock.cpp
+++ b/drivers/windows/stream_peer_tcp_winsock.cpp
@@ -212,6 +212,7 @@ Error StreamPeerTCPWinsock::read(uint8_t *p_buffer, int p_bytes, int &r_received
_block(sockfd, true, false);
} else if (read == 0) {
disconnect_from_host();
+ r_received = total_read;
return ERR_FILE_EOF;
} else {