nextLine has already been incremented. Pushing it onto the return stack incremented again skips a line of the install script.
This commit is contained in:
@@ -186,7 +186,7 @@ void Processor::ProcessLine(const CString& line, unsigned& nextLine)
|
||||
mLabel = parts[1];
|
||||
if (mLabels.find(mLabel) != mLabels.end())
|
||||
{
|
||||
mReturnStack.push(nextLine + 1);
|
||||
mReturnStack.push(nextLine);
|
||||
nextLine = mLabels[mLabel];
|
||||
mLabel = "";
|
||||
return;
|
||||
@@ -209,7 +209,7 @@ void Processor::ProcessLine(const CString& line, unsigned& nextLine)
|
||||
{
|
||||
return;
|
||||
}
|
||||
mReturnStack.push(nextLine + 1);
|
||||
mReturnStack.push(nextLine);
|
||||
if (mLabels.find(mLabel) != mLabels.end())
|
||||
{
|
||||
nextLine = mLabels[mLabel];
|
||||
|
||||
Reference in New Issue
Block a user