aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/zsyscall_windows.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/zsyscall_windows.go')
-rw-r--r--service/zsyscall_windows.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/service/zsyscall_windows.go b/service/zsyscall_windows.go
index e8e035b7..38983370 100644
--- a/service/zsyscall_windows.go
+++ b/service/zsyscall_windows.go
@@ -270,21 +270,14 @@ func notifyServiceStatusChange(service windows.Handle, notifyMask uint32, notify
return
}
-func sleepEx(milliseconds uint32, alertable bool) (ret uint32, err error) {
+func sleepEx(milliseconds uint32, alertable bool) (ret uint32) {
var _p0 uint32
if alertable {
_p0 = 1
} else {
_p0 = 0
}
- r0, _, e1 := syscall.Syscall(procSleepEx.Addr(), 2, uintptr(milliseconds), uintptr(_p0), 0)
+ r0, _, _ := syscall.Syscall(procSleepEx.Addr(), 2, uintptr(milliseconds), uintptr(_p0), 0)
ret = uint32(r0)
- if ret == 0 {
- if e1 != 0 {
- err = errnoErr(e1)
- } else {
- err = syscall.EINVAL
- }
- }
return
}