Bug 172996. Acc Explorer getting stuck walking into accessible trees. r=jgaunt, sr=bzbarsky

This commit is contained in:
aaronl%netscape.com 2002-10-08 08:00:00 +00:00
parent 8a20be1a77
commit b7b6e92dd1

@ -799,7 +799,7 @@ Accessible::Next(ULONG aNumElementsRequested, VARIANT FAR* pvar, ULONG FAR* aNum
for (long childIndex = 0; pvar[*aNumElementsFetched].vt == VT_DISPATCH; ++childIndex) {
IAccessible *msaaAccessible = NS_STATIC_CAST(IAccessible*, pvar[*aNumElementsFetched].pdispVal);
if (childIndex >= mEnumVARIANTPosition) {
if ((*aNumElementsFetched)++ >= aNumElementsRequested)
if (++*aNumElementsFetched >= aNumElementsRequested)
break;
}
else {