VirtualBox

Changeset 71627 in vbox for trunk/src


Ignore:
Timestamp:
Apr 2, 2018 10:37:11 PM (7 years ago)
Author:
vboxsync
Message:

IPRT/net: RTNetStrToMacAddr - fix a couple of places where it still
returned getopt error code instead of generic VERR_INVALID_PARAMETER.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/net/macstr.cpp

    r69111 r71627  
    6060    int rc = RTStrToUInt8Ex(RTStrStripL(pszValue), &pszNext, 16, &pAddr->au8[0]);
    6161    if (rc != VINF_SUCCESS && rc != VWRN_TRAILING_CHARS)
    62         return VERR_GETOPT_INVALID_ARGUMENT_FORMAT;
     62        return VERR_INVALID_PARAMETER;
    6363    if (*pszNext++ != ':')
    64         return VERR_GETOPT_INVALID_ARGUMENT_FORMAT;
     64        return VERR_INVALID_PARAMETER;
    6565
    6666    /* middle */
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