mirror of
https://github.com/amnezia-vpn/amneziawg-go.git
synced 2025-06-05 04:43:44 +02:00
wintun: Compare values of GUID, not pointers, when removing
This commit is contained in:
parent
52aa00f3ba
commit
fac1fbcd72
1 changed files with 1 additions and 1 deletions
|
@ -288,7 +288,7 @@ func (wintun *Wintun) DeleteInterface(hwndParent uintptr) (bool, bool, error) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if ifid == ifid2 {
|
if *ifid == *ifid2 {
|
||||||
// Remove the device.
|
// Remove the device.
|
||||||
removeDeviceParams := setupapi.SP_REMOVEDEVICE_PARAMS{
|
removeDeviceParams := setupapi.SP_REMOVEDEVICE_PARAMS{
|
||||||
ClassInstallHeader: setupapi.SP_CLASSINSTALL_HEADER{
|
ClassInstallHeader: setupapi.SP_CLASSINSTALL_HEADER{
|
||||||
|
|
Loading…
Add table
Reference in a new issue