From d74fe2c184e96f3eb7980653b636905867ff5b03 Mon Sep 17 00:00:00 2001 From: "shrutiv%netscape.com" Date: Fri, 8 Jun 2001 23:29:27 +0000 Subject: [PATCH] Bug 84529: Crash with return/enter key after switching Configuraition Using return/enter key after switching Configuration takes you to the next screen (r=bobj) git-svn-id: svn://10.0.0.236/trunk@96757 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cck/driver/interpret.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mozilla/cck/driver/interpret.cpp b/mozilla/cck/driver/interpret.cpp index af7abc236c9..609de1c7d36 100644 --- a/mozilla/cck/driver/interpret.cpp +++ b/mozilla/cck/driver/interpret.cpp @@ -995,25 +995,25 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget) } else if (strcmp(pcmd, "toggleEnabled2") == 0) { - // convert first parm into boolean... - char *p2 = strchr(parms, ','); + // convert first parm into boolean... + char *p2 = strchr(parms, ','); if (p2) { *p2++ = '\0'; CString value = replaceVars(parms, NULL); BOOL newval = (!value.IsEmpty()); - parms = p2; - p2 = strchr(parms, ','); - while (parms) + char *parms1 = p2; + p2 = strchr(parms1, ','); + while (parms1) { if (p2) *p2++ = '\0'; WIDGET *w = findWidget(parms); if (w) w->control->EnableWindow(newval); - parms = p2; - if (parms) - p2 = strchr(parms, ','); + parms1 = p2; + if (parms1) + p2 = strchr(parms1, ','); } } }