Changeset 71433 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Mar 21, 2018 1:44:20 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r71108 r71433 1030 1030 RTStrmPrintf(pStrm, 1031 1031 "%s getextradata %s global|<uuid|vmname>\n" 1032 " <key>| enumerate\n"1032 " <key>|[enumerate]\n" 1033 1033 "\n", SEP); 1034 1034 -
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.