Explorar o código

remove overlapped call

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
66a391cafe
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      common/buf/readv_windows.go

+ 1 - 2
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
 	}