aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/src/commandqueue.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-10-06 11:05:15 +0200
committermarha <marha@users.sourceforge.net>2011-10-06 11:05:15 +0200
commitab941773990635d79adb5b1ae16a008d7b2ed1ff (patch)
treebe862b3b43f8cf5c216d9b82b4453de7b3b46faa /tools/mhmake/src/commandqueue.cpp
parent471b2db241070bf447bef9e897d6650b39a59b8f (diff)
downloadvcxsrv-ab941773990635d79adb5b1ae16a008d7b2ed1ff.tar.gz
vcxsrv-ab941773990635d79adb5b1ae16a008d7b2ed1ff.tar.bz2
vcxsrv-ab941773990635d79adb5b1ae16a008d7b2ed1ff.zip
Solved possible crash
Diffstat (limited to 'tools/mhmake/src/commandqueue.cpp')
-rw-r--r--tools/mhmake/src/commandqueue.cpp7
1 files changed, 1 insertions, 6 deletions
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
{