aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 04:49:15 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-07 04:49:15 +0100
commitfac1fbcd7254d8fd2bf28ed12eeb3ce88b35a1af (patch)
treedd985c00a8c8af3a6d6dc4e1e4121709c97900af
parentmain_windows: Catch more exit events (diff)
downloadwireguard-go-fac1fbcd7254d8fd2bf28ed12eeb3ce88b35a1af.tar.xz
wireguard-go-fac1fbcd7254d8fd2bf28ed12eeb3ce88b35a1af.zip
wintun: Compare values of GUID, not pointers, when removing
-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 1413c24..6adbb94 100644
--- a/tun/wintun/wintun_windows.go
+++ b/tun/wintun/wintun_windows.go
@@ -288,7 +288,7 @@ func (wintun *Wintun) DeleteInterface(hwndParent uintptr) (bool, bool, error) {
continue
}
- if ifid == ifid2 {
+ if *ifid == *ifid2 {
// Remove the device.
removeDeviceParams := setupapi.SP_REMOVEDEVICE_PARAMS{
ClassInstallHeader: setupapi.SP_CLASSINSTALL_HEADER{