VirtualBox

Changeset 104260 in vbox for trunk/src


Ignore:
Timestamp:
Apr 9, 2024 11:38:53 PM (10 months ago)
Author:
vboxsync
Message:

IPRT/RTPathGlob: Nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/path/RTPathGlob.cpp

    r104258 r104260  
    487487    if (rc == VERR_BUFFER_OVERFLOW)
    488488    {
    489         for (uint32_t iTry = 0; iTry < 10; iTry++)
     489        for (uint32_t iTry = 0;; iTry++)
    490490        {
    491491            size_t cbPathBuf = RT_ALIGN_Z(cchActual + 1 + 64 * iTry, 64);
     
    496496            RTMemTmpFree(pszPathFree);
    497497            AssertReturn(cchActual >= cbPathBuf, VERR_INTERNAL_ERROR_3);
    498             if (RT_FAILURE(rc) && iTry == 9)
     498            if (iTry >= 9)
    499499                return rc;
    500500        }
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