diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-13 01:58:53 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-13 02:02:02 +0200 |
commit | e0a8c22aa64d6a606cb03e3fd09eaa3e62a2f7c9 (patch) | |
tree | 1a1c1d8bd027367ae3efb23f88ef3333e5b5e689 /tun/wintun/setupapi/zsetupapi_windows_test.go | |
parent | 0b77bf78cda24582688325cf3197866b60aed69e (diff) | |
download | wireguard-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.go | 2 |
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") } } |