VirtualBox

Changeset 61669 in vbox


Ignore:
Timestamp:
Jun 13, 2016 8:44:56 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108023
Message:

FE/Qt: bugref:8358: Debugger: Fixing issue in binary-search of statistics nodes-tree when existing nodes have same name as new node with additional characters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/VBoxDbgStatsQt4.cpp

    r59415 r61669  
    15331533                iDiff = memcmp(pszSubName, pNode->papChildren[i]->pszName, cchCompare);
    15341534                if (!iDiff)
     1535                {
    15351536                    iDiff = cchSubName == cchCompare ? 0 : cchSubName > cchCompare ? 1 : -1;
     1537                    /* For cases when exisiting node name is same as new node name with additional characters. */
     1538                    if (!iDiff)
     1539                        iDiff = cchSubName == pNode->papChildren[i]->cchName ? 0 : cchSubName > pNode->papChildren[i]->cchName ? 1 : -1;
     1540                }
    15361541                if (iDiff > 0)
    15371542                {
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