diff options
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r-- | Source/cmcmd.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 24c67c6..449db9d 100644 --- a/Source/cmcmd.cxx +++ b/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; |