mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 23:59:54 -06:00
BBA: Fix TAP detection
This commit is contained in:
@ -66,7 +66,11 @@ bool IsTAPDevice(const TCHAR* guid)
|
|||||||
|
|
||||||
if (status == ERROR_SUCCESS && data_type == REG_SZ)
|
if (status == ERROR_SUCCESS && data_type == REG_SZ)
|
||||||
{
|
{
|
||||||
if (!_tcscmp(component_id, TAP_COMPONENT_ID) && !_tcscmp(net_cfg_instance_id, guid))
|
TCHAR* const component_id_sub = _tcsstr(component_id, TAP_COMPONENT_ID);
|
||||||
|
|
||||||
|
if (component_id_sub)
|
||||||
|
{
|
||||||
|
if (!_tcscmp(component_id_sub, TAP_COMPONENT_ID) && !_tcscmp(net_cfg_instance_id, guid))
|
||||||
{
|
{
|
||||||
RegCloseKey(unit_key);
|
RegCloseKey(unit_key);
|
||||||
RegCloseKey(netcard_key);
|
RegCloseKey(netcard_key);
|
||||||
@ -74,6 +78,7 @@ bool IsTAPDevice(const TCHAR* guid)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
RegCloseKey(unit_key);
|
RegCloseKey(unit_key);
|
||||||
}
|
}
|
||||||
++i;
|
++i;
|
||||||
|
Reference in New Issue
Block a user