Skip to content

Commit

Permalink
fix: replace Syscall6 with SyscallN on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 26, 2024
1 parent 6fe3268 commit 11645df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flock_winapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 11645df

Please sign in to comment.