cmd: GOTO is a no-op and doesn't output anything in interactive mode.

This commit is contained in:
Frédéric Delanoy 2011-09-09 21:54:41 +02:00 committed by Alexandre Julliard
parent 24aa18d914
commit 6e506eaea9
1 changed files with 5 additions and 4 deletions

View File

@ -1377,14 +1377,15 @@ void WCMD_goto (CMD_LIST **cmdList) {
/* Do not process any more parts of a processed multipart or multilines command */
if (cmdList) *cmdList = NULL;
if (param1[0] == 0x00) {
WCMD_output (WCMD_LoadMessage(WCMD_NOARG));
return;
}
if (context != NULL) {
WCHAR *paramStart = param1, *str;
static const WCHAR eofW[] = {':','e','o','f','\0'};
if (param1[0] == 0x00) {
WCMD_output (WCMD_LoadMessage(WCMD_NOARG));
return;
}
/* Handle special :EOF label */
if (lstrcmpiW (eofW, param1) == 0) {
context -> skip_rest = TRUE;