Bug 383608. Some IA2 interfaces must check smart XPCOM QI to see if a given object supports that interface. r=surkov

git-svn-id: svn://10.0.0.236/trunk@227696 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net
2007-06-08 14:16:27 +00:00
parent 27955d9663
commit 91feac62f7
6 changed files with 9 additions and 10 deletions

View File

@@ -63,7 +63,7 @@ CAccessibleHyperlink::QueryInterface(REFIID iid, void** ppv)
if (IID_IAccessibleHyperlink == iid) {
nsCOMPtr<nsIAccessibleHyperLink> acc(do_QueryInterface(this));
if (!acc)
return E_FAIL;
return E_NOINTERFACE;
*ppv = NS_STATIC_CAST(IAccessibleHyperlink*, this);
(NS_REINTERPRET_CAST(IUnknown*, *ppv))->AddRef();