aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-23 15:25:53 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-23 15:25:53 +0200
commit8fdcf5ee30d9576b5ddb163180f5d5506a349eea (patch)
tree1a810873ee9f4557fa3c12bf08b7950bc5d1342e
parentipc: use simplified fork of winio (diff)
downloadwireguard-go-8fdcf5ee30d9576b5ddb163180f5d5506a349eea.tar.xz
wireguard-go-8fdcf5ee30d9576b5ddb163180f5d5506a349eea.zip
wintun: never return nil, nil
-rw-r--r--tun/wintun/wintun_windows.go2
1 files changed, 1 insertions, 1 deletions
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
}
//