cmd: GOTO is a no-op and doesn't output anything in interactive mode
Frédéric Delanoy
frederic.delanoy at gmail.com
Thu Sep 8 18:48:05 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 acd609c..0e2b459 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -1476,16 +1476,17 @@ 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;
static const WCHAR eofW[] = {':','e','o','f','\0'};
BOOL label_found;
LARGE_INTEGER pos;
+ 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