1
0
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:
Darien Raymond 2018-08-25 21:40:30 +02:00
parent d12148c0cd
commit 66a391cafe
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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
}