mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -05:00
remove overlapped call
This commit is contained in:
parent
d12148c0cd
commit
66a391cafe
@ -27,8 +27,7 @@ func (r *windowsReader) Clear() {
|
||||
func (r *windowsReader) Read(fd uintptr) int32 {
|
||||
var nBytes uint32
|
||||
var flags uint32
|
||||
var o syscall.Overlapped
|
||||
err := syscall.WSARecv(syscall.Handle(fd), &r.bufs[0], uint32(len(r.bufs)), &nBytes, &flags, &o, nil)
|
||||
err := syscall.WSARecv(syscall.Handle(fd), &r.bufs[0], uint32(len(r.bufs)), &nBytes, &flags, nil, nil)
|
||||
if err != nil {
|
||||
return -1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user