VirtualBox

Changeset 71303 in vbox


Ignore:
Timestamp:
Mar 12, 2018 4:43:25 PM (7 years ago)
Author:
vboxsync
Message:

Guest Control/Main: Validate flags for GuestSession::directoryCopyFromGuest / GuestSession::directoryCopyToGuest().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r71302 r71303  
    26192619            fFlags |= aFlags[i];
    26202620    }
    2621     /** @todo Validate flags. */
     2621
     2622    if (fFlags)
     2623    {
     2624        if (!(fFlags & DirectoryCopyFlag_CopyIntoExisting))
     2625            return setError(E_INVALIDARG, tr("Invalid flags specified"));
     2626    }
    26222627
    26232628    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     
    26962701            fFlags |= aFlags[i];
    26972702    }
    2698     /** @todo Validate flags. */
     2703
     2704    if (fFlags)
     2705    {
     2706        if (!(fFlags & DirectoryCopyFlag_CopyIntoExisting))
     2707            return setError(E_INVALIDARG, tr("Invalid flags specified"));
     2708    }
    26992709
    27002710    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
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