mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
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:
parent
5289f033ad
commit
4c565ab7f1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user