diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2022-01-12 11:41:48 -0800 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2022-01-12 11:41:48 -0800 |
| commit | 83aebf8f7bb6d766f6b68accdc44acb9cea3d57e (patch) | |
| tree | 2bc157e436a00d61c042503cea2e9629122194d6 /src/test/codegen/src-hash-algorithm | |
| parent | 53e072f2207747e8b60dcbb77b763c1598cfb192 (diff) | |
| download | rust-83aebf8f7bb6d766f6b68accdc44acb9cea3d57e.tar.gz rust-83aebf8f7bb6d766f6b68accdc44acb9cea3d57e.zip | |
Use the correct `cvt` for converting socket errors on Windows.
`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.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions
