VirtualBox

Changeset 34862 in vbox for trunk


Ignore:
Timestamp:
Dec 9, 2010 10:04:37 AM (14 years ago)
Author:
vboxsync
Message:

Adjusted flags checking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r34833 r34862  
    18441844
    18451845    /* Validate flags. */
    1846     if (aFlags)
     1846    if (aFlags !=  ExecuteProcessFlag_None)
    18471847    {
    18481848        if (   !(aFlags & ExecuteProcessFlag_IgnoreOrphanedProcesses)
     
    25992599
    26002600    /* Validate flags. */
    2601     if (aFlags != 0) /* Flags are not supported at the moment. */
    2602         return setError(E_INVALIDARG, tr("Unknown flags (%#x)"), aFlags);
     2601    if (aFlags != CopyFileFlag_None)
     2602    {
     2603        if (   !(aFlags & CopyFileFlag_Recursive)
     2604            && !(aFlags & CopyFileFlag_Update)
     2605            && !(aFlags & CopyFileFlag_FollowLinks))
     2606        {
     2607            return setError(E_INVALIDARG, tr("Unknown flags (%#x)"), aFlags);
     2608        }
     2609    }
    26032610
    26042611    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