Quellcode durchsuchen

cmcmd: Fix typo in RunCommand logic

Fix logic added by commit 18eae3f04d (Windows: Do not report manifest
tool update notification as failure, 2017-11-09).

Issue: #17444
Brad King vor 8 Jahren
Ursprung
Commit
5c07d3900d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      Source/cmcmd.cxx

+ 1 - 1
Source/cmcmd.cxx

@@ -1594,7 +1594,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;