From 66a391cafe06752b6a7296f19d70e436ff3a44c4 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 25 Aug 2018 21:40:30 +0200 Subject: [PATCH] remove overlapped call --- common/buf/readv_windows.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/buf/readv_windows.go b/common/buf/readv_windows.go index f58c6536a..8339fdb14 100644 --- a/common/buf/readv_windows.go +++ b/common/buf/readv_windows.go @@ -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 }