mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1220897 - fix IAccessible2::get_accessibleWithCaret, r=tbsaunde
This commit is contained in:
parent
5a696decc5
commit
24f3111282
@ -663,14 +663,15 @@ ia2Accessible::get_accessibleWithCaret(IUnknown** aAccessible,
|
|||||||
return S_FALSE;
|
return S_FALSE;
|
||||||
|
|
||||||
Accessible* child = accWithCaret;
|
Accessible* child = accWithCaret;
|
||||||
while (child != acc)
|
while (!child->IsDoc() && child != acc)
|
||||||
child = child->Parent();
|
child = child->Parent();
|
||||||
|
|
||||||
if (!child)
|
if (child != acc)
|
||||||
return S_FALSE;
|
return S_FALSE;
|
||||||
|
|
||||||
*aAccessible = static_cast<IAccessible2*>(
|
*aAccessible = static_cast<IAccessible2*>(
|
||||||
static_cast<AccessibleWrap*>(accWithCaret));
|
static_cast<AccessibleWrap*>(accWithCaret));
|
||||||
|
(*aAccessible)->AddRef();
|
||||||
*aCaretOffset = caretOffset;
|
*aCaretOffset = caretOffset;
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user