[NETSH] Use the right index in MatchTagsInCmdLine

This commit is contained in:
Eric Kohl
2026-05-30 21:02:53 +02:00
parent 8f5639a9bd
commit 93bd77f1f7
+1 -1
View File
@@ -404,7 +404,7 @@ MatchTagsInCmdLine(
for (j = 0; j < dwTagCount; j++)
{
DPRINT("Test tag %S\n", pttTags[j].pwszTag);
if ((wcslen(pttTags[i].pwszTag) == dwTagLength) &&
if ((wcslen(pttTags[j].pwszTag) == dwTagLength) &&
(_wcsnicmp(ppwcArguments[i], pttTags[j].pwszTag, dwTagLength) == 0))
{
DPRINT("Found tag %S\n", pttTags[j].pwszTag);