Changed a call to QueryInterface to use CallQueryInterface which helps with type checking.

This commit is contained in:
tbogard@aol.net
1999-10-29 23:59:20 +00:00
parent 0ebd7590b9
commit 3bd76249f2

View File

@@ -96,7 +96,7 @@ NS_IMETHODIMP nsDocShellBase::GetDocument(nsIDOMDocument** aDocument)
NS_ENSURE(doc, NS_ERROR_NULL_POINTER);
// the result's addref comes from this QueryInterface call
doc->QueryInterface(nsIDOMDocument::GetIID(), (void **)aDocument);
NS_ENSURE_SUCCESS(CallQueryInterface(doc, aDocument), NS_ERROR_FAILURE);
return NS_OK;
}