Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10301 from RA-Kooi/BBAFix
BBA: Fix TAP detection
  • Loading branch information
leoetlino committed Jan 1, 2022
2 parents 89b3326 + edb8434 commit 379ab16
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Source/Core/Core/HW/EXI/BBA/TAP_Win32.cpp
Expand Up @@ -66,11 +66,16 @@ bool IsTAPDevice(const TCHAR* guid)

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)
{
RegCloseKey(unit_key);
RegCloseKey(netcard_key);
return true;
if (!_tcscmp(component_id_sub, TAP_COMPONENT_ID) && !_tcscmp(net_cfg_instance_id, guid))
{
RegCloseKey(unit_key);
RegCloseKey(netcard_key);
return true;
}
}
}
}
Expand Down

0 comments on commit 379ab16

Please sign in to comment.