From 11645df0b79018bbb1da62beee84071f65893638 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 26 Jun 2024 17:39:58 +0200 Subject: [PATCH] fix: replace Syscall6 with SyscallN on Windows --- flock_winapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flock_winapi.go b/flock_winapi.go index 23ec80c..79abfc0 100644 --- a/flock_winapi.go +++ b/flock_winapi.go @@ -54,7 +54,7 @@ func lockFileEx(handle syscall.Handle, flags uint32, reserved uint32, numberOfBy } func unlockFileEx(handle syscall.Handle, reserved uint32, numberOfBytesToLockLow uint32, numberOfBytesToLockHigh uint32, offset *syscall.Overlapped) (bool, syscall.Errno) { - r1, _, errNo := syscall.Syscall6( + r1, _, errNo := syscall.SyscallN( uintptr(procUnlockFileEx), 5, uintptr(handle),