diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-12-12 14:47:47 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-12-12 20:06:26 +0100 |
commit | 506bab8f62c585380e607b91ab80c939dc99851c (patch) | |
tree | 2f7ea57f07aabc1ac2325cb09555836d0c927dfb /winaccessibility | |
parent | b22e987113374399c7455f7979bc34519eac69da (diff) |
winaccessibility: GetChildInterface may return 0
Change-Id: I950072d22cd315d1898b76a2c345121d31d432c4
Diffstat (limited to 'winaccessibility')
-rw-r--r-- | winaccessibility/source/UAccCOM/MAccessible.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winaccessibility/source/UAccCOM/MAccessible.cxx b/winaccessibility/source/UAccCOM/MAccessible.cxx index 82fb41a8bfd3..c4e00c7d9b78 100644 --- a/winaccessibility/source/UAccCOM/MAccessible.cxx +++ b/winaccessibility/source/UAccCOM/MAccessible.cxx @@ -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; |