зеркало из https://github.com/mozilla/gecko-dev.git
bug 1208779 - null check aAccessible in GetChildIDFor() for 32 bit as well as 64 bit windows r=davidb
This commit is contained in:
Родитель
116d238f35
Коммит
354672cfd1
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче