]> Cypherpunks repositories - gostls13.git/commitdiff
internal/syscall/windows: regenerate GetFileSizeEx
authorqmuntal <quimmuntal@gmail.com>
Mon, 29 Sep 2025 06:37:35 +0000 (08:37 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 29 Sep 2025 18:56:25 +0000 (11:56 -0700)
GetFileSizeEx was generated before mkwinsyscall was updated to use
SyscallN. Regenerate to use the new style.

Fixes #75642

Change-Id: Ia473a167633b67fb75b5762d693848ecee425a7e
Reviewed-on: https://go-review.googlesource.com/c/go/+/707615
Reviewed-by: Roland Shoemaker <roland@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/internal/syscall/windows/zsyscall_windows.go

index fb8bc80629a626972d532d7fa1548abbb3ef27ef..70c4d76dff0d0f936c034df61e43dc0e384b2d6c 100644 (file)
@@ -328,7 +328,7 @@ func GetFileInformationByHandleEx(handle syscall.Handle, class uint32, info *byt
 }
 
 func GetFileSizeEx(handle syscall.Handle, size *int64) (err error) {
-       r1, _, e1 := syscall.Syscall(procGetFileSizeEx.Addr(), 2, uintptr(handle), uintptr(unsafe.Pointer(size)), 0)
+       r1, _, e1 := syscall.SyscallN(procGetFileSizeEx.Addr(), uintptr(handle), uintptr(unsafe.Pointer(size)))
        if r1 == 0 {
                err = errnoErr(e1)
        }