mirror of
https://github.com/izzy2lost/mame.git
synced 2026-03-10 12:32:38 -07:00
3rdpary/asio: Fixed error check in sockatmark(). (#11656)
From chriskohlhoff/asio@f79d3dc5c8
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user