Fix missing return value.
parent
5a9b301b7a
commit
3cfe020083
|
@ -81,10 +81,7 @@ func SetPriorityWindows(pid int, priority uint32) error {
|
||||||
}
|
}
|
||||||
defer windows.CloseHandle(handle) // Technically this can fail, but we ignore it if it does
|
defer windows.CloseHandle(handle) // Technically this can fail, but we ignore it if it does
|
||||||
|
|
||||||
err = windows.SetPriorityClass(handle, priority)
|
return windows.SetPriorityClass(handle, priority)
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in New Issue