From 8fdcf5ee30d9576b5ddb163180f5d5506a349eea Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 23 May 2019 15:25:53 +0200 Subject: [PATCH] wintun: never return nil, nil --- tun/wintun/wintun_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tun/wintun/wintun_windows.go b/tun/wintun/wintun_windows.go index 811f53d..aea4ad1 100644 --- a/tun/wintun/wintun_windows.go +++ b/tun/wintun/wintun_windows.go @@ -168,7 +168,7 @@ func GetInterface(ifname string, hwndParent uintptr) (*Wintun, error) { } } - return nil, nil + return nil, windows.ERROR_OBJECT_NOT_FOUND } //