wensleydale rides the short bus. Lets see if it can understand a basic QueryInterface since CallQueryInterface seems to be too much for it's little brain to handle.

This commit is contained in:
tbogard@aol.net
1999-11-29 23:25:25 +00:00
parent 2644bb1d51
commit 9859bb5a9b

View File

@@ -153,7 +153,8 @@ NS_IMETHODIMP nsDocShell::GetDocument(nsIDOMDocument** aDocument)
NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER);
// the result's addref comes from this QueryInterface call
NS_ENSURE_SUCCESS(CallQueryInterface(doc, aDocument), NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(doc->QueryInterface(NS_GET_IID(nsIDOMDocument),
(void**)aDocument), NS_ERROR_FAILURE);
return NS_OK;
}