Kaydet (Commit) 506bab8f authored tarafından Michael Stahl's avatar Michael Stahl

winaccessibility: GetChildInterface may return 0

Change-Id: I950072d22cd315d1898b76a2c345121d31d432c4
üst b22e9871
......@@ -378,8 +378,10 @@ STDMETHODIMP CMAccessible::get_accChild(VARIANT varChild, IDispatch **ppdispChil
return S_OK;
}
*ppdispChild = GetChildInterface(varChild.lVal);
if (!(*ppdispChild))
return S_FALSE;
(*ppdispChild)->AddRef();
return (*ppdispChild)?S_OK:S_FALSE;
return S_OK;
}
return S_FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment