mirror of
https://github.com/fumiama/go-hide-param.git
synced 2026-06-10 18:40:24 +08:00
fix
This commit is contained in:
6
win.go
6
win.go
@@ -91,9 +91,9 @@ func utf16PtrToSlice(p *uint16) []uint16 {
|
||||
return s
|
||||
}
|
||||
|
||||
func Hide(position uint) {
|
||||
if position < uint(len(os.Args)) {
|
||||
func Hide(position int) {
|
||||
if position > 0 && position < len(os.Args) {
|
||||
cmd := utf16PtrToSlice(syscall.GetCommandLine())
|
||||
eraseCommandLine(&cmd, position)
|
||||
eraseCommandLine(&cmd, uint(position))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user