This commit is contained in:
av%netscape.com 2000-01-19 00:31:52 +00:00
parent bbd83de51d
commit 7ded49fa53
2 changed files with 12 additions and 6 deletions

View File

@ -1784,11 +1784,14 @@ NS_IMETHODIMP nsPluginInstanceOwner::ShowStatus(const char *aStatusMsg)
{
nsCOMPtr<nsIBrowserWindow> browserWindow(do_QueryInterface(rootContainer));
if (rootContainer)
if(browserWindow)
{
nsAutoString msg = nsAutoString(aStatusMsg);
if (rootContainer)
{
nsAutoString msg = nsAutoString(aStatusMsg);
rv = browserWindow->SetStatus(msg.GetUnicode());
rv = browserWindow->SetStatus(msg.GetUnicode());
}
}
}
}

View File

@ -1784,11 +1784,14 @@ NS_IMETHODIMP nsPluginInstanceOwner::ShowStatus(const char *aStatusMsg)
{
nsCOMPtr<nsIBrowserWindow> browserWindow(do_QueryInterface(rootContainer));
if (rootContainer)
if(browserWindow)
{
nsAutoString msg = nsAutoString(aStatusMsg);
if (rootContainer)
{
nsAutoString msg = nsAutoString(aStatusMsg);
rv = browserWindow->SetStatus(msg.GetUnicode());
rv = browserWindow->SetStatus(msg.GetUnicode());
}
}
}
}