VirtualBox

Changeset 77279 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Feb 12, 2019 2:47:36 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128794
Message:

Guest Control/Main + FE/Qt: Reverted r128734 (Be more strict for IGuestSession::copyToGuest() / copyFromGuest() and set/validate the filters + flags); not needed and is good enough.

File:
1 edited

Legend:

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

    r77227 r77279  
    29072907
    29082908    const size_t cSources = aSources.size();
    2909     if (!cSources)
    2910         return setError(E_INVALIDARG, tr("No sources specified"));
    2911 
    2912     if (   (aFilters.size() != cSources)
    2913         || (aFlags.size()   != cSources))
    2914     {
    2915         return setError(E_INVALIDARG, tr("Filter / flag parameter array sizes don't match to the number of sources specified"));
     2909    if (   (aFilters.size() && aFilters.size() != cSources)
     2910        || (aFlags.size()   && aFlags.size()   != cSources))
     2911    {
     2912        return setError(E_INVALIDARG, tr("Parameter array sizes don't match to the number of sources specified"));
    29162913    }
    29172914
     
    29892986
    29902987    const size_t cSources = aSources.size();
    2991     if (!cSources)
    2992         return setError(E_INVALIDARG, tr("No sources specified"));
    2993 
    2994     if (   (aFilters.size() != cSources)
    2995         || (aFlags.size()   != cSources))
    2996     {
    2997         return setError(E_INVALIDARG, tr("Filter / flag parameter array sizes don't match to the number of sources specified"));
     2988    if (   (aFilters.size() && aFilters.size() != cSources)
     2989        || (aFlags.size()   && aFlags.size()   != cSources))
     2990    {
     2991        return setError(E_INVALIDARG, tr("Parameter array sizes don't match to the number of sources specified"));
    29982992    }
    29992993
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette