From 31b1bd56835ae8e004400c63118ea9cc0f92ca08 Mon Sep 17 00:00:00 2001 From: "joki%netscape.com" Date: Fri, 14 Aug 1998 20:36:31 +0000 Subject: [PATCH] Fix queryinterface calls on window.top and window.parent git-svn-id: svn://10.0.0.236/trunk@8028 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/dom/src/base/nsGlobalWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/dom/src/base/nsGlobalWindow.cpp b/mozilla/dom/src/base/nsGlobalWindow.cpp index d7b4e239046..be593a77be9 100644 --- a/mozilla/dom/src/base/nsGlobalWindow.cpp +++ b/mozilla/dom/src/base/nsGlobalWindow.cpp @@ -285,7 +285,7 @@ GlobalWindowImpl::GetParent(nsIDOMWindow** aParent) if (nsnull != mParentWebShell) { nsIScriptContextOwner *mParentContextOwner; - if (NS_OK == mParentWebShell->QueryInterface(kIScriptContextOwnerIID, (void**)mParentContextOwner)) { + if (NS_OK == mParentWebShell->QueryInterface(kIScriptContextOwnerIID, (void**)&mParentContextOwner)) { nsIScriptGlobalObject *mParentGlobalObject; if (NS_OK == mParentContextOwner->GetScriptGlobalObject(&mParentGlobalObject)) { ret = mParentGlobalObject->QueryInterface(kIDOMWindowIID, (void**)aParent); @@ -321,7 +321,7 @@ GlobalWindowImpl::GetTop(nsIDOMWindow** aTop) if (nsnull != mRootWebShell) { nsIScriptContextOwner *mRootContextOwner; - if (NS_OK == mRootWebShell->QueryInterface(kIScriptContextOwnerIID, (void**)mRootContextOwner)) { + if (NS_OK == mRootWebShell->QueryInterface(kIScriptContextOwnerIID, (void**)&mRootContextOwner)) { nsIScriptGlobalObject *mRootGlobalObject; if (NS_OK == mRootContextOwner->GetScriptGlobalObject(&mRootGlobalObject)) { ret = mRootGlobalObject->QueryInterface(kIDOMWindowIID, (void**)aTop);