Changeset 77279 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Feb 12, 2019 2:47:36 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 128794
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r77227 r77279 2907 2907 2908 2908 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")); 2916 2913 } 2917 2914 … … 2989 2986 2990 2987 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")); 2998 2992 } 2999 2993
Note:
See TracChangeset
for help on using the changeset viewer.