log: fix lint issue SA1019: syscall.Syscall has been deprecated since Go 1.18: Use SyscallN instead.

This commit is contained in:
albertony 2024-04-17 16:45:52 +02:00
parent 1ca825b6f0
commit fdc56b21c1
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ var (
)
func setStdHandle(stdhandle int32, handle syscall.Handle) error {
r0, _, e1 := syscall.Syscall(procSetStdHandle.Addr(), 2, uintptr(stdhandle), uintptr(handle), 0)
r0, _, e1 := syscall.SyscallN(procSetStdHandle.Addr(), uintptr(stdhandle), uintptr(handle))
if r0 == 0 {
if e1 != 0 {
return error(e1)