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