mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
83aebf8f7b
`WSADuplicateSocketW` returns 0 on success, which differs from handle-oriented functions which return 0 on error. Use `sys::net::cvt` to handle its return value, which handles the socket convention of returning 0 on success, rather than `sys::cvt`, which handles the handle-oriented convention of returning 0 on failure.