summaryrefslogtreecommitdiffhomepage
path: root/src/uapi_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-26 15:15:27 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-26 15:15:27 +0200
commit6fa65bded45957434db08e5d33fe82a04af73a59 (patch)
tree2f860cdea80d992da97625290757f7c6396131c1 /src/uapi_windows.go
parent012e7b9d3316023e6ea891f9fe72f15d1db6668a (diff)
Clean up error handling of listen port
Diffstat (limited to 'src/uapi_windows.go')
-rw-r--r--src/uapi_windows.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uapi_windows.go b/src/uapi_windows.go
index d56e965..a4599a5 100644
--- a/src/uapi_windows.go
+++ b/src/uapi_windows.go
@@ -12,9 +12,9 @@ import (
const (
ipcErrorIO = -int64(windows.ERROR_BROKEN_PIPE)
- ipcErrorNotDefined = -int64(windows.ERROR_SERVICE_SPECIFIC_ERROR)
- ipcErrorProtocol = -int64(windows.ERROR_SERVICE_SPECIFIC_ERROR)
- ipcErrorInvalid = -int64(windows.ERROR_SERVICE_SPECIFIC_ERROR)
+ ipcErrorProtocol = -int64(windows.ERROR_INVALID_NAME)
+ ipcErrorInvalid = -int64(windows.ERROR_INVALID_PARAMETER)
+ ipcErrorPortInUse = -int64(windows.ERROR_ALREADY_EXISTS)
)
const PipeNameFmt = "\\\\.\\pipe\\wireguard-ipc-%s"