aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/tunneltracker.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:39:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-16 15:39:42 +0200
commitfae6416229ae5535bc3c6d2cd5fd97c86e020a93 (patch)
tree77c624f768385edf8791b4904f01f8d7069ab283 /service/tunneltracker.go
parentfirewall: correct protocol condition in NDP filters (diff)
downloadwireguard-windows-fae6416229ae5535bc3c6d2cd5fd97c86e020a93.tar.xz
wireguard-windows-fae6416229ae5535bc3c6d2cd5fd97c86e020a93.zip
service: use more upstream constants
Diffstat (limited to 'service/tunneltracker.go')
-rw-r--r--service/tunneltracker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/tunneltracker.go b/service/tunneltracker.go
index 9e413c22..4c61925a 100644
--- a/service/tunneltracker.go
+++ b/service/tunneltracker.go
@@ -107,7 +107,7 @@ func trackTunnelService(tunnelName string, service *mgr.Service) {
checkForDisabled := func() (shouldReturn bool) {
config, err := service.Config()
- if err == syscall.Errno(serviceMARKED_FOR_DELETE) || config.StartType == windows.SERVICE_DISABLED {
+ if err == windows.ERROR_SERVICE_MARKED_FOR_DELETE || config.StartType == windows.SERVICE_DISABLED {
log.Printf("[%s] Found disabled service via timeout, so deleting", tunnelName)
service.Delete()
trackedTunnelsLock.Lock()
@@ -163,7 +163,7 @@ func trackTunnelService(tunnelName string, service *mgr.Service) {
}
} else {
switch notifier.ServiceStatus.Win32ExitCode {
- case uint32(windows.NO_ERROR), serviceNEVER_STARTED:
+ case uint32(windows.NO_ERROR), uint32(windows.ERROR_SERVICE_NEVER_STARTED):
default:
tunnelError = syscall.Errno(notifier.ServiceStatus.Win32ExitCode)
}