VirtualBox

Ignore:
Timestamp:
Jan 15, 2020 1:14:04 PM (5 years ago)
Author:
vboxsync
Message:

VBoxExtPackHelperApp: Fix check in CommonDirRenameWrapper() to return on every other except VERR_ACCESS_DENIED or VERR_SHARING_VIOLATION, or when the 15 second timeout elapsed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-helper-apps/VBoxExtPackHelperApp.cpp

    r82552 r82769  
    232232    {
    233233        int rc = RTDirRename(pszSrc, pszDst, fFlags);
    234         if (   (   rc == VERR_ACCESS_DENIED
    235                 || rc == VERR_SHARING_VIOLATION)
    236             && RTTimeNanoTS() - nsNow < RT_NS_15SEC)
     234        if (   (   rc != VERR_ACCESS_DENIED
     235                && rc != VERR_SHARING_VIOLATION)
     236            || RTTimeNanoTS() - nsNow > RT_NS_15SEC)
    237237            return rc;
    238238        RTThreadSleep(128);
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