aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/zsyscall_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-11 01:14:12 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-12 03:07:59 -0600
commit84ecc877e2ca356b33806d8258a4aa5f36a43147 (patch)
tree0f487b1621d30c1f1febca2bae5df55cb0e4e2c2 /service/zsyscall_windows.go
parentui: hack around rendering glitch (diff)
downloadwireguard-windows-84ecc877e2ca356b33806d8258a4aa5f36a43147.tar.xz
wireguard-windows-84ecc877e2ca356b33806d8258a4aa5f36a43147.zip
tunneltracker: redo deletion state machine
We're now properly examining the notifier return value and also making sure events are delivered in order.
Diffstat (limited to 'service/zsyscall_windows.go')
-rw-r--r--service/zsyscall_windows.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/service/zsyscall_windows.go b/service/zsyscall_windows.go
index faf6d780..edae1999 100644
--- a/service/zsyscall_windows.go
+++ b/service/zsyscall_windows.go
@@ -90,15 +90,9 @@ func createWellKnownSid(sidType wellKnownSidType, domainSid *windows.SID, sid *w
return
}
-func notifyServiceStatusChange(service windows.Handle, notifyMask uint32, notifyBuffer uintptr) (err error) {
- r1, _, e1 := syscall.Syscall(procNotifyServiceStatusChangeW.Addr(), 3, uintptr(service), uintptr(notifyMask), uintptr(notifyBuffer))
- if r1 != 0 {
- if e1 != 0 {
- err = errnoErr(e1)
- } else {
- err = syscall.EINVAL
- }
- }
+func notifyServiceStatusChange(service windows.Handle, notifyMask uint32, notifyBuffer uintptr) (status uint32) {
+ r0, _, _ := syscall.Syscall(procNotifyServiceStatusChangeW.Addr(), 3, uintptr(service), uintptr(notifyMask), uintptr(notifyBuffer))
+ status = uint32(r0)
return
}