[FIND] Return from the utility the success value from the FindString() function in all cases.

CORE-16356

Therefore the ERRORLEVEL value will be correctly set in accordance on
return from the utility in cmd.exe, and conditional tests based on this
returned value will succeed as they should.
This commit is contained in:
Doug Lyons 2019-08-31 18:34:20 +02:00 committed by Hermès Bélusca-Maïto
parent 90c9a67993
commit 1a31d8222d
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -337,7 +337,7 @@ int wmain(int argc, WCHAR* argv[])
}
else
{
FindString(stdin, NULL, argv[iSearchedStringIndex]);
iReturnValue = FindString(stdin, NULL, argv[iSearchedStringIndex]);
}
return iReturnValue;