VirtualBox

Ignore:
Timestamp:
Jun 16, 2016 12:05:08 PM (9 years ago)
Author:
vboxsync
Message:

Runtime/RTJson: Enhance testcase and two fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/json.cpp

    r61721 r61730  
    14121412        if (pIt->idxCur < pThis->Type.Array.cItems)
    14131413            pIt->idxCur++;
    1414         else
     1414
     1415        if (pIt->idxCur == pThis->Type.Object.cMembers)
    14151416            rc = VERR_JSON_ITERATOR_END;
    14161417    }
     
    14211422        if (pIt->idxCur < pThis->Type.Object.cMembers)
    14221423            pIt->idxCur++;
    1423         else
     1424
     1425        if (pIt->idxCur == pThis->Type.Object.cMembers)
    14241426            rc = VERR_JSON_ITERATOR_END;
    14251427    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette