mirror of
https://github.com/reactos/reactos.git
synced 2025-06-25 14:29:43 +00:00
- Allow running a batch file from inside a FOR
- A little cleanup svn path=/trunk/; revision=40038
This commit is contained in:
parent
c116a4507a
commit
341c5b2e5f
4 changed files with 36 additions and 47 deletions
|
@ -38,7 +38,6 @@
|
|||
|
||||
INT cmd_goto (LPTSTR param)
|
||||
{
|
||||
TCHAR szMsg[RC_STRING_MAX_SIZE];
|
||||
LPTSTR tmp, tmp2;
|
||||
LONG lNewPosHigh = 0;
|
||||
|
||||
|
@ -58,8 +57,8 @@ INT cmd_goto (LPTSTR param)
|
|||
|
||||
if (*param == _T('\0'))
|
||||
{
|
||||
LoadString(CMD_ModuleHandle, STRING_GOTO_ERROR1, szMsg, RC_STRING_MAX_SIZE);
|
||||
ExitBatch(szMsg);
|
||||
ConErrResPrintf(STRING_GOTO_ERROR1);
|
||||
ExitBatch();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -117,7 +116,7 @@ INT cmd_goto (LPTSTR param)
|
|||
}
|
||||
|
||||
ConErrResPrintf(STRING_GOTO_ERROR2, param);
|
||||
ExitBatch(NULL);
|
||||
ExitBatch();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue