mirror of
https://github.com/holub/mame
synced 2025-04-18 22:49:58 +03:00
3rdpary/asio: Fixed error check in sockatmark(). (#11656)
From chriskohlhoff/asio@f79d3dc5c8
This commit is contained in:
parent
ba621ec24d
commit
d6a7f2906a
@ -641,7 +641,7 @@ bool sockatmark(socket_type s, asio::error_code& ec)
|
||||
# endif // defined(ENOTTY)
|
||||
#else // defined(SIOCATMARK)
|
||||
int value = ::sockatmark(s);
|
||||
get_last_error(ec, result < 0);
|
||||
get_last_error(ec, value < 0);
|
||||
#endif // defined(SIOCATMARK)
|
||||
|
||||
return ec ? false : value != 0;
|
||||
|
Loading…
Reference in New Issue
Block a user