https://git.reactos.org/?p=reactos.git;a=commitdiff;h=212cbb6fffffbed79aa89b39382556b1c8567b98

commit 212cbb6fffffbed79aa89b39382556b1c8567b98
Author:     William Kent <[email protected]>
AuthorDate: Sun Oct 10 17:01:48 2021 -0400
Commit:     Hermès Bélusca-Maïto <[email protected]>
CommitDate: Thu May 5 17:21:54 2022 +0200

    [CABMAN] Make cabman exit with non-zero exit code if argument parsing fails 
(#4022)
    
    Co-authored-by: Serge Gautherie 
<[email protected]>
---
 sdk/tools/cabman/cabman.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sdk/tools/cabman/cabman.cxx b/sdk/tools/cabman/cabman.cxx
index d258b534e79..97c72f7d18a 100644
--- a/sdk/tools/cabman/cabman.cxx
+++ b/sdk/tools/cabman/cabman.cxx
@@ -689,7 +689,7 @@ int main(int argc, char * argv[])
     CCABManager CABMgr;
 
     if (!CABMgr.ParseCmdline(argc, argv))
-        return false;
+        return 2;
 
     return CABMgr.Run() ? 0 : 1;
 }

Reply via email to