Update tracert.cpp

Modified several calls to OutputText to utilize updated resource strings
This commit is contained in:
Curtis Wilson 2025-03-11 17:55:22 -04:00 committed by GitHub
parent b73a14adc2
commit 079b0b0d55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -591,7 +591,7 @@ GetOptionNumberOfHops(
// see if we have enough values
if ((*i + 1) > (argc - 1))
{
OutputText(IDS_MISSING_OPTION_VALUE, argv[*i][0], argv[*i][1]);
OutputText(IDS_MISSING_OPTION_VALUE, argv[*i]);
return false;
}
@ -603,7 +603,7 @@ GetOptionNumberOfHops(
|| ((NumberOfHops < MIN_HOP_COUNT) || (NumberOfHops > MAX_HOP_COUNT)))
{
(*i)--;
OutputText(IDS_BAD_OPTION_VALUE, argv[*i][0], argv[*i][1]);
OutputText(IDS_BAD_OPTION_VALUE, argv[*i]);
return false;
}
@ -629,7 +629,7 @@ GetOptionTimeout(
// see if we have enough values
if ((*i + 1) > (argc - 1))
{
OutputText(IDS_MISSING_OPTION_VALUE, argv[*i][0], argv[*i][1]);
OutputText(IDS_MISSING_OPTION_VALUE, argv[*i]);
return false;
}
@ -642,7 +642,7 @@ GetOptionTimeout(
// if we get here then Timeout is less then 1 or somthing other
// then a numeric value
(*i)--;
OutputText(IDS_BAD_OPTION_VALUE, argv[*i][0], argv[*i][1]);
OutputText(IDS_BAD_OPTION_VALUE, argv[*i]);
return false;
}