From 5c07d3900dfca4a1c7eb37cd00f448a8312dca03 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 10 Nov 2017 10:35:24 -0500 Subject: 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 --- Source/cmcmd.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index 433caef..69339b4 100644 --- a/Source/cmcmd.cxx +++ b/Source/cmcmd.cxx @@ -1594,7 +1594,7 @@ static bool RunCommand(const char* comment, std::vector& command, retCode == 0 || (retCodeOkay && retCodeOkay(retCode)); bool const success = commandResult && retCodeSuccess; if (retCodeOut) { - if (commandResult || !retCodeOkay) { + if (commandResult || !retCodeSuccess) { *retCodeOut = retCode; } else { *retCodeOut = -1; -- cgit v0.12