Commit 860268e 1 parent 2df7e2c commit 860268e Copy full SHA for 860268e
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -186,20 +186,20 @@ impl<T: IoVecBufMut> OpAble for ReadVec<T> {
186
186
187
187
#[ cfg( all( any( feature = "legacy" , feature = "poll-io" ) , windows) ) ]
188
188
fn legacy_call ( & mut self ) -> io:: Result < u32 > {
189
- let mut bytes_recved = 0 ;
189
+ let mut bytes_received = 0 ;
190
190
let ret = unsafe {
191
191
WSARecv (
192
192
self . fd . raw_socket ( ) as _ ,
193
193
self . buf_vec . write_wsabuf_ptr ( ) ,
194
194
self . buf_vec . write_wsabuf_len ( ) . min ( u32:: MAX as usize ) as _ ,
195
- & mut bytes_recved ,
196
- std :: ptr :: null_mut ( ) ,
195
+ & mut bytes_received ,
196
+ & mut 0 ,
197
197
std:: ptr:: null_mut ( ) ,
198
198
None ,
199
199
)
200
200
} ;
201
201
match ret {
202
- 0 => Ok ( bytes_recved ) ,
202
+ 0 => Ok ( bytes_received ) ,
203
203
_ => {
204
204
let error = unsafe { WSAGetLastError ( ) } ;
205
205
Err ( io:: Error :: from_raw_os_error ( error) )
You can’t perform that action at this time.
0 commit comments