Skip to content

Commit

Permalink
Fix wrong get socket error method (#1572)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Mar 5, 2020
1 parent 6aad88a commit 1a07cb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ HRESULT Library_sys_net_native_System_Net_Sockets_NativeSocket::SendRecvHelper(
// send/recv/sendto/recvfrom failed
if(bytes == SOCK_SOCKET_ERROR)
{
CLR_INT32 err = SOCK_getlasterror();
CLR_INT32 err = SOCK_getsocklasterror(handle);

if(err != SOCK_EWOULDBLOCK)
{
Expand Down

0 comments on commit 1a07cb5

Please sign in to comment.