https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1a31d8222de42482bba11…
commit 1a31d8222de42482bba117bb21dddaada1cf6821
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Sat Aug 31 18:34:20 2019 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sat Aug 31 18:48:12 2019 +0200
[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.
---
base/applications/cmdutils/find/find.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/base/applications/cmdutils/find/find.c
b/base/applications/cmdutils/find/find.c
index 9dd003fc07f..53d01932c16 100644
--- a/base/applications/cmdutils/find/find.c
+++ b/base/applications/cmdutils/find/find.c
@@ -337,7 +337,7 @@ int wmain(int argc, WCHAR* argv[])
}
else
{
- FindString(stdin, NULL, argv[iSearchedStringIndex]);
+ iReturnValue = FindString(stdin, NULL, argv[iSearchedStringIndex]);
}
return iReturnValue;