From d28616d4697bf8ec02e8afed39013721e4567f9a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 9 May 2022 15:33:22 -0700 Subject: [PATCH] syscall: update broken links Remove one link which isn't very interesting, and update another to point to the current location. Fixes #52753 Change-Id: I5f53ede35b0ded197bc0e6d41eabf28d736de5b8 Reviewed-on: https://go-review.googlesource.com/c/go/+/405296 Run-TryBot: Ian Lance Taylor Reviewed-by: Heschi Kreinick TryBot-Result: Gopher Robot Reviewed-by: Hajime Hoshi Reviewed-by: Michael Knyszek --- src/syscall/syscall_windows.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/syscall/syscall_windows.go b/src/syscall/syscall_windows.go index adc865fd5ff..ebaf84343d1 100644 --- a/src/syscall/syscall_windows.go +++ b/src/syscall/syscall_windows.go @@ -448,12 +448,11 @@ func setFilePointerEx(handle Handle, distToMove int64, newFilePointer *int64, wh default: panic("unsupported 32-bit architecture") case "386": - // distToMove is a LARGE_INTEGER: - // https://msdn.microsoft.com/en-us/library/windows/desktop/aa383713(v=vs.85).aspx + // distToMove is a LARGE_INTEGER, which is 64 bits. _, _, e1 = Syscall6(procSetFilePointerEx.Addr(), 5, uintptr(handle), uintptr(distToMove), uintptr(distToMove>>32), uintptr(unsafe.Pointer(newFilePointer)), uintptr(whence), 0) case "arm": // distToMove must be 8-byte aligned per ARM calling convention - // https://msdn.microsoft.com/en-us/library/dn736986.aspx#Anchor_7 + // https://docs.microsoft.com/en-us/cpp/build/overview-of-arm-abi-conventions#stage-c-assignment-of-arguments-to-registers-and-stack _, _, e1 = Syscall6(procSetFilePointerEx.Addr(), 6, uintptr(handle), 0, uintptr(distToMove), uintptr(distToMove>>32), uintptr(unsafe.Pointer(newFilePointer)), uintptr(whence)) } }