summaryrefslogtreecommitdiff
path: root/tun/wintun/setupapi/zsetupapi_windows_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-13 01:58:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-13 02:02:02 +0200
commite0a8c22aa64d6a606cb03e3fd09eaa3e62a2f7c9 (patch)
tree1a1c1d8bd027367ae3efb23f88ef3333e5b5e689 /tun/wintun/setupapi/zsetupapi_windows_test.go
parent0b77bf78cda24582688325cf3197866b60aed69e (diff)
downloadwireguard-go-e0a8c22aa64d6a606cb03e3fd09eaa3e62a2f7c9.tar.gz
wireguard-go-e0a8c22aa64d6a606cb03e3fd09eaa3e62a2f7c9.zip
windows: use proper constants from updated x/sys
Diffstat (limited to 'tun/wintun/setupapi/zsetupapi_windows_test.go')
-rw-r--r--tun/wintun/setupapi/zsetupapi_windows_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tun/wintun/setupapi/zsetupapi_windows_test.go b/tun/wintun/setupapi/zsetupapi_windows_test.go
index 09b9195..915b427 100644
--- a/tun/wintun/setupapi/zsetupapi_windows_test.go
+++ b/tun/wintun/setupapi/zsetupapi_windows_test.go
@@ -14,7 +14,7 @@ import (
func TestSetupDiDestroyDeviceInfoList(t *testing.T) {
err := SetupDiDestroyDeviceInfoList(DevInfo(windows.InvalidHandle))
- if errWin, ok := err.(syscall.Errno); !ok || errWin != 6 /*ERROR_INVALID_HANDLE*/ {
+ if errWin, ok := err.(syscall.Errno); !ok || errWin != windows.ERROR_INVALID_HANDLE {
t.Errorf("SetupDiDestroyDeviceInfoList(nil, ...) should fail with ERROR_INVALID_HANDLE")
}
}