From fac1fbcd7254d8fd2bf28ed12eeb3ce88b35a1af Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 7 Feb 2019 04:49:15 +0100 Subject: wintun: Compare values of GUID, not pointers, when removing --- tun/wintun/wintun_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tun/wintun/wintun_windows.go') 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{ -- cgit v1.2.3