Browse Source

Merge topic 'windows-mt-update-quiet'

5c07d390 cmcmd: Fix typo in RunCommand logic

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1473
Brad King 8 years ago
parent
commit
11e2f53e30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmcmd.cxx

+ 1 - 1
Source/cmcmd.cxx

@@ -1595,7 +1595,7 @@ static bool RunCommand(const char* comment, std::vector<std::string>& command,
     retCode == 0 || (retCodeOkay && retCodeOkay(retCode));
   bool const success = commandResult && retCodeSuccess;
   if (retCodeOut) {
-    if (commandResult || !retCodeOkay) {
+    if (commandResult || !retCodeSuccess) {
       *retCodeOut = retCode;
     } else {
       *retCodeOut = -1;