Changeset 71433 in vbox for trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
- Timestamp:
- Mar 21, 2018 1:44:20 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 121401
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r71054 r71433 813 813 HRESULT rc = S_OK; 814 814 815 if (a->argc != 2)815 if (a->argc > 2 || a->argc < 1) 816 816 return errorSyntax(USAGE_GETEXTRADATA, "Incorrect number of parameters"); 817 817 … … 820 820 { 821 821 /* enumeration? */ 822 if ( !strcmp(a->argv[1], "enumerate"))822 if (a->argc < 2 || !strcmp(a->argv[1], "enumerate")) 823 823 { 824 824 SafeArray<BSTR> aKeys; … … 856 856 { 857 857 /* enumeration? */ 858 if ( !strcmp(a->argv[1], "enumerate"))858 if (a->argc < 2 || !strcmp(a->argv[1], "enumerate")) 859 859 { 860 860 SafeArray<BSTR> aKeys;
Note:
See TracChangeset
for help on using the changeset viewer.