diff options
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") } } |