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)
This commit is contained in:
shrutiv%netscape.com 2001-06-08 23:29:27 +00:00
Родитель baceb25527
Коммит 87e2d6a0fb
1 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -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, ',');
}
}
}