1
0
mirror of https://git.zx2c4.com/wireguard-go synced 2024-11-15 01:05:15 +01:00

wintun: Compare values of GUID, not pointers, when removing

This commit is contained in:
Jason A. Donenfeld 2019-02-07 04:49:15 +01:00
parent 52aa00f3ba
commit fac1fbcd72

View File

@ -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{