Fixed a warning.

This commit is contained in:
tbogard@aol.net
1999-11-17 04:19:39 +00:00
parent 51625a5e21
commit f2a03515fc
2 changed files with 6 additions and 4 deletions

View File

@@ -1361,12 +1361,13 @@ NS_IMETHODIMP
nsWebShell::GetTopLevelWindow(nsIWebShellContainer** aTopLevelWindow)
{
NS_ENSURE_ARG_POINTER(aTopLevelWindow);
*aTopLevelWindow;
*aTopLevelWindow = nsnull;
nsCOMPtr<nsIWebShell> rootWebShell;
GetRootWebShellEvenIfChrome(getter_AddRefs(rootWebShell));
NS_ENSURE_TRUE(rootWebShell, NS_OK);
if(!rootWebShell)
return NS_OK;
nsCOMPtr<nsIWebShellContainer> rootContainer;
rootWebShell->GetContainer(*aTopLevelWindow);