VirtualBox

Ignore:
Timestamp:
Mar 21, 2018 1:44:20 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121401
Message:

VBoxManage: Made the enumerate argument for getextradata optional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r71054 r71433  
    813813    HRESULT rc = S_OK;
    814814
    815     if (a->argc != 2)
     815    if (a->argc > 2 || a->argc < 1)
    816816        return errorSyntax(USAGE_GETEXTRADATA, "Incorrect number of parameters");
    817817
     
    820820    {
    821821        /* enumeration? */
    822         if (!strcmp(a->argv[1], "enumerate"))
     822        if (a->argc < 2 || !strcmp(a->argv[1], "enumerate"))
    823823        {
    824824            SafeArray<BSTR> aKeys;
     
    856856        {
    857857            /* enumeration? */
    858             if (!strcmp(a->argv[1], "enumerate"))
     858            if (a->argc < 2 || !strcmp(a->argv[1], "enumerate"))
    859859            {
    860860                SafeArray<BSTR> aKeys;
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