Fixing 50628 - crash attaching a file to bugzilla on Linux. Need to cast

to the right type in QueryInterface!  r=pavlov.


git-svn-id: svn://10.0.0.236/trunk@77610 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bryner%uiuc.edu
2000-08-30 08:07:12 +00:00
parent 57fe73c029
commit 188fb97dc5
2 changed files with 2 additions and 2 deletions

View File

@@ -758,7 +758,7 @@ nsresult nsDocument::QueryInterface(REFNSIID aIID, void** aInstancePtr)
return NS_OK;
}
if (aIID.Equals(NS_GET_IID(nsIDOMDocumentXBL))) {
nsIDOMDocumentView* tmp = this;
nsIDOMDocumentXBL* tmp = this;
*aInstancePtr = (void*) tmp;
NS_ADDREF_THIS();
return NS_OK;

View File

@@ -758,7 +758,7 @@ nsresult nsDocument::QueryInterface(REFNSIID aIID, void** aInstancePtr)
return NS_OK;
}
if (aIID.Equals(NS_GET_IID(nsIDOMDocumentXBL))) {
nsIDOMDocumentView* tmp = this;
nsIDOMDocumentXBL* tmp = this;
*aInstancePtr = (void*) tmp;
NS_ADDREF_THIS();
return NS_OK;