Skip to content

Commit 7b820e9

Browse files
committed
fix:remove parameter matching in mkwinsyscall
1 parent 48aad76 commit 7b820e9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

windows/mkwinsyscall/mkwinsyscall.go

+1-9
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ import (
6262
"path/filepath"
6363
"runtime"
6464
"sort"
65-
"strconv"
6665
"strings"
6766
"text/template"
6867
)
@@ -576,14 +575,7 @@ func (f *Fn) SyscallParamCount() int {
576575

577576
// Syscall determines which SyscallX function to use for function f.
578577
func (f *Fn) Syscall() string {
579-
c := f.SyscallParamCount()
580-
if c == 3 {
581-
return syscalldot() + "Syscall"
582-
}
583-
if c > 15 {
584-
return syscalldot() + "SyscallN"
585-
}
586-
return syscalldot() + "Syscall" + strconv.Itoa(c)
578+
return syscalldot() + "SyscallN"
587579
}
588580

589581
// SyscallParamList returns source code for SyscallX parameters for function f.

0 commit comments

Comments
 (0)