]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.cc] runtime: replace deleted netpollfd function
authorAlex Brainman <alex.brainman@gmail.com>
Mon, 17 Nov 2014 06:18:21 +0000 (17:18 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Mon, 17 Nov 2014 06:18:21 +0000 (17:18 +1100)
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/169710043

src/runtime/netpoll_windows.go

index 88e878137621f363071cdee53f5ecdd1e5d2e891..8a15f182cd321ee918d49f27a5a86ed52afefde2 100644 (file)
@@ -108,7 +108,7 @@ retry:
                        op = entries[i].op
                        errno = 0
                        qty = 0
-                       if stdcall5(_WSAGetOverlappedResult, netpollfd(op.pd), uintptr(unsafe.Pointer(op)), uintptr(unsafe.Pointer(&qty)), 0, uintptr(unsafe.Pointer(&flags))) == 0 {
+                       if stdcall5(_WSAGetOverlappedResult, op.pd.fd, uintptr(unsafe.Pointer(op)), uintptr(unsafe.Pointer(&qty)), 0, uintptr(unsafe.Pointer(&flags))) == 0 {
                                errno = int32(getlasterror())
                        }
                        handlecompletion(&gp, op, errno, qty)