cmd: GOTO is a no-op and doesn't output anything in interactive mode
Frédéric Delanoy
frederic.delanoy at gmail.com
Fri Sep 9 14:54:41 CDT 2011
---
programs/cmd/builtins.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 7122301..dcbc73e 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -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;
--
1.7.6
More information about the wine-patches
mailing list