bug 1208779 - null check aAccessible in GetChildIDFor() for 32 bit as well as 64 bit windows r=davidb

This commit is contained in:
Trevor Saunders 2015-09-28 13:34:35 -04:00
parent 964f3f3c3c
commit 8e6d249aba

View File

@ -1294,8 +1294,12 @@ AccessibleWrap::GetChildIDFor(Accessible* aAccessible)
// so that the 3rd party application can call back and get the IAccessible
// the event occurred on.
if (!aAccessible) {
return 0;
}
#ifdef _WIN64
if (!aAccessible || (!aAccessible->Document() && !aAccessible->IsProxy()))
if (!aAccessible->Document() && !aAccessible->IsProxy())
return 0;
uint32_t* id = & static_cast<AccessibleWrap*>(aAccessible)->mID;