mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Fix for bug 101984: Empty string in port no. field causes browser to
crash (r=tao)
This commit is contained in:
parent
118632a126
commit
c4bf3f111d
@ -700,7 +700,20 @@ BOOL CInterpret::interpret(CString cmds, WIDGET *curWidget)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else if(strcmp(pcmd, "IsPortnumEmpty") ==0)
|
||||
{
|
||||
WIDGET *wid;
|
||||
wid = curWidget;
|
||||
if (wid)
|
||||
{
|
||||
CString retval = CWizardUI::GetScreenValue(curWidget);
|
||||
if (retval == "")
|
||||
{
|
||||
SetGlobal(curWidget->value,"0");
|
||||
((CEdit*)wid->control)->SetWindowText("0");
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (strcmp(pcmd, "VerifySet") == 0)
|
||||
{
|
||||
// VerifySet checks to see if the first parameter has any value
|
||||
|
Loading…
x
Reference in New Issue
Block a user