r=rhp. nsDocumentBindInfo was returning NO_INTERFACE when asked for nsISupports. I can't believe we made it this far w/ that object not able to support nsISupports :/

This commit is contained in:
valeski%netscape.com 1999-11-18 02:19:13 +00:00
Родитель edb11b195c
Коммит 442edcfdf4
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -1017,6 +1017,11 @@ nsDocumentBindInfo::QueryInterface(const nsIID& aIID,
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(kISupportsIID)) {
*aInstancePtrResult = (void*) ((nsISupports*) this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}

Просмотреть файл

@ -1017,6 +1017,11 @@ nsDocumentBindInfo::QueryInterface(const nsIID& aIID,
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(kISupportsIID)) {
*aInstancePtrResult = (void*) ((nsISupports*) this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}