This commit is contained in:
dveditz%netscape.com 1999-07-16 03:16:29 +00:00
Родитель 9bd5c53136
Коммит 026f203d60
2 изменённых файлов: 14 добавлений и 12 удалений

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

@ -312,32 +312,34 @@ nsSoftwareUpdate::InstallJarCallBack()
nsresult
nsSoftwareUpdate::RunNextInstall()
{
nsresult rv = NS_OK;
nsresult rv = NS_OK;
nsInstallInfo* info = nsnull;
PR_Lock(mLock);
if (!mInstalling)
if (!mInstalling)
{
if ( mJarInstallQueue->GetSize() > 0 )
{
nsInstallInfo *info = (nsInstallInfo*)mJarInstallQueue->Get(0);
info = (nsInstallInfo*)mJarInstallQueue->Get(0);
if ( info )
{
mInstalling = PR_TRUE;
RunInstall( info );
}
else
// XXX leaks any nsInstallInfos left in queue
rv = NS_ERROR_NULL_POINTER;
}
else
{
// nothing more to do
VR_Close();
}
}
else
{
// nothing more to do
VR_Close();
}
PR_Unlock(mLock);
// make sure to RunInstall() outside of locked section due to callbacks
if (info)
RunInstall( info );
return rv;
}

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

@ -274,7 +274,7 @@ static nsresult SetupInstallContext(const char* jarFile,
///////////////////////////////////////////////////////////////////////////////////////////////
PRInt32 RunInstall(nsInstallInfo *installInfo)
{
if (installInfo->GetFlags() == 0x00000001)
if (installInfo->GetFlags() == 0x0000FFFF) // XXX bogus value -- do we want this feature?
{
RunInstallOnThread((void *)installInfo);
}