mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
3rdpary/asio: Fixed error check in sockatmark(). (#11656)
From chriskohlhoff/asio@f79d3dc5c8
This commit is contained in:
parent
ba621ec24d
commit
d6a7f2906a
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue