SHELL_STATUS ShellStatus;\r
CHAR16 *CompareString;\r
UINTN Size;\r
+ SCRIPT_FILE *CurrentScriptFile;\r
\r
ShellStatus = SHELL_SUCCESS;\r
CompareString = NULL;\r
// Check forwards and then backwards for a label...\r
//\r
if (!MoveToTag(GetNextNode, L"endfor", L"for", CompareString, ShellCommandGetCurrentScriptFile(), FALSE, FALSE, TRUE)) {\r
+ CurrentScriptFile = ShellCommandGetCurrentScriptFile();\r
ShellPrintHiiEx(\r
-1, \r
-1, \r
gShellLevel1HiiHandle, \r
CompareString, \r
L"Goto", \r
- ShellCommandGetCurrentScriptFile()!=NULL\r
- &&ShellCommandGetCurrentScriptFile()->CurrentCommand!=NULL\r
- ?ShellCommandGetCurrentScriptFile()->CurrentCommand->Line:0);\r
+ CurrentScriptFile!=NULL \r
+ && CurrentScriptFile->CurrentCommand!=NULL\r
+ ? CurrentScriptFile->CurrentCommand->Line:0);\r
ShellStatus = SHELL_NOT_FOUND;\r
}\r
FreePool(CompareString);\r