Skip to content

Commit 56a6bba

Browse files
committed
fix:remove parameter count from arguments list
1 parent 7b820e9 commit 56a6bba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

windows/mkwinsyscall/mkwinsyscall.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ func {{.HelperName}}({{.HelperParamList}}) {{template "results" .}}{
10071007
10081008
{{define "results"}}{{if .Rets.List}}{{.Rets.List}} {{end}}{{end}}
10091009
1010-
{{define "syscall"}}{{.Rets.SetReturnValuesCode}}{{.Syscall}}(proc{{.DLLFuncName}}.Addr(),{{if le .ParamCount 15}} {{.ParamCount}},{{end}} {{.SyscallParamList}}){{end}}
1010+
{{define "syscall"}}{{.Rets.SetReturnValuesCode}}{{.Syscall}}(proc{{.DLLFuncName}}.Addr(), {{.SyscallParamList}}){{end}}
10111011
10121012
{{define "tmpvarsreadback"}}{{range .Params}}{{if .TmpVarReadbackCode}}
10131013
{{.TmpVarReadbackCode}}{{end}}{{end}}{{end}}

0 commit comments

Comments
 (0)