fix: set title

This commit is contained in:
源文雨 2023-03-01 11:46:00 +08:00
parent 41f0b11469
commit ca3ff1b522

View File

@ -29,7 +29,7 @@ func setConsoleTitle(title string) (err error) {
if err != nil {
return
}
r1, _, e1 := syscall.Syscall(procSetConsoleTitle.Addr(), 1, uintptr(unsafe.Pointer(p0)), 0)
r1, _, e1 := syscall.Syscall(procSetConsoleTitle.Addr(), 1, uintptr(unsafe.Pointer(p0)), 0, 0)
if r1 == 0 {
err = errnoErr(e1)
}