VirtualBox

Changeset 18624 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 2, 2009 10:09:34 AM (16 years ago)
Author:
vboxsync
Message:

VBoxManage: don't crash on VBoxManage createhd --help

File:
1 edited

Legend:

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

    r18566 r18624  
    213213                        return errorSyntax(USAGE_CREATEHD, "Invalid option case %i", c);
    214214                }
     215                else if (c == VERR_GETOPT_UNKNOWN_OPTION)
     216                    return errorSyntax(USAGE_CREATEHD, "unknown option: %s\n", ValueUnion.psz);
    215217                else if (ValueUnion.pDef)
    216218                    return errorSyntax(USAGE_CREATEHD, "%s: %Rrs", ValueUnion.pDef->pszLong, c);
     
    648650                        return errorSyntax(USAGE_CONVERTFROMRAW, "Invalid option case %i", c);
    649651                }
     652                else if (c == VERR_GETOPT_UNKNOWN_OPTION)
     653                    return errorSyntax(USAGE_CREATEHD, "unknown option: %s\n", ValueUnion.psz);
    650654                else if (ValueUnion.pDef)
    651655                    return errorSyntax(USAGE_CONVERTFROMRAW, "%s: %Rrs", ValueUnion.pDef->pszLong, c);
Note: See TracChangeset for help on using the changeset viewer.

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