fixing blocker bug 108530 - Setup.exe error on install, mozilla launches with full screen empty page

This commit is contained in:
ssu%netscape.com 2001-11-15 23:27:55 +00:00
parent 4a8b2ae277
commit 1272590f7a

View File

@ -410,14 +410,14 @@ char* nsInstallFileOpItem::toString()
case NS_FOP_WIN_SHORTCUT:
rsrcVal = mInstall->GetResourcedString(NS_LITERAL_STRING("WindowsShortcut"));
if(rsrcVal != nsnull)
if(rsrcVal && mShortcutPath)
{
mShortcutPath->GetPath(&temp);
result.AssignWithConversion(temp);
result.AppendWithConversion("\\");
result.Append(*mDescription);
dstPath = ToNewCString(result);
if(dstPath != nsnull)
if(dstPath)
{
PR_snprintf(resultCString, RESBUFSIZE, rsrcVal, dstPath );
Recycle(dstPath);