From ab941773990635d79adb5b1ae16a008d7b2ed1ff Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 6 Oct 2011 11:05:15 +0200 Subject: Solved possible crash --- tools/mhmake/src/commandqueue.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'tools/mhmake/src/commandqueue.cpp') diff --git a/tools/mhmake/src/commandqueue.cpp b/tools/mhmake/src/commandqueue.cpp index d2d462df6..45a1d1043 100644 --- a/tools/mhmake/src/commandqueue.cpp +++ b/tools/mhmake/src/commandqueue.cpp @@ -267,16 +267,11 @@ bool commandqueue::StartExecuteCommands(fileinfo* pTarget) pActiveEntry->pTarget=pTarget; pActiveEntry->CurrentCommandIt=CommandIt; - while (1) + while (pActiveEntry->CurrentCommandIt!=pRule->GetCommands().end()) { if (StartExecuteNextCommand(pActiveEntry, &ActiveProcess)) { pActiveEntry->CurrentCommandIt++; - if (pActiveEntry->CurrentCommandIt==pRule->GetCommands().end()) - { - // All commands executed - break; - } } else { -- cgit v1.2.3