1
0
Fork 0

Fix missing return value.

main
Icedream 2024-01-22 02:13:45 +01:00
parent 5a9b301b7a
commit 3cfe020083
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 1 additions and 4 deletions

View File

@ -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() {