Bug 235921 Installer hangs if there are more than two apps to run p=ajschult r=bsmedberg sr=dveditz a=chofmann

This commit is contained in:
neil%parkwaycc.co.uk 2004-03-19 22:07:13 +00:00
parent 5289f033ad
commit 4c565ab7f1

View File

@ -256,7 +256,7 @@ int
nsInstallDlg::AppendRunApp(nsRunApp *aNewRunApp)
{
int err = OK;
nsRunApp *currRunApp = NULL;
nsRunApp *currRunApp = NULL, *nextRunApp = NULL;
/* param check */
if (!aNewRunApp)
@ -273,11 +273,12 @@ nsInstallDlg::AppendRunApp(nsRunApp *aNewRunApp)
currRunApp = sRunAppList;
while (currRunApp)
{
if (!currRunApp->GetNext())
if (!(nextRunApp = currRunApp->GetNext()))
{
currRunApp->SetNext(aNewRunApp);
break;
}
currRunApp = nextRunApp;
}
return err;
}