Skip to content

Commit

Permalink
Correctly check for WIFI_ device tag, not NPCAP\\WIFI_
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Mar 25, 2021
1 parent 62a0563 commit 480e011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packetWin7/npf/npf/Openclos.c
Original file line number Diff line number Diff line change
Expand Up @@ -1810,8 +1810,8 @@ NPF_GetFilterModuleByAdapterName(
}

// Check for WIFI_ prefix and strip it
if (PUNICODE_CONTAINS(pAdapterName, NPF_DEVICE_NAMES_PREFIX_WIDECHAR_WIFI, shrink_by * sizeof(WCHAR))) {
shrink_by += sizeof(NPF_DEVICE_NAMES_PREFIX_WIDECHAR)/sizeof(WCHAR) - 1;
if (PUNICODE_CONTAINS(pAdapterName, NPF_DEVICE_NAMES_TAG_WIDECHAR_WIFI, shrink_by * sizeof(WCHAR))) {
shrink_by += sizeof(NPF_DEVICE_NAMES_TAG_WIDECHAR_WIFI)/sizeof(WCHAR) - 1;
Dot11 = TRUE;
}

Expand Down

0 comments on commit 480e011

Please sign in to comment.