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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user