VirtualBox

Changeset 17225 in vbox for trunk


Ignore:
Timestamp:
Mar 2, 2009 6:35:48 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
43542
Message:

NAT: return 0 in case of success and -1 in case of error, in dns information fetching routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r17224 r17225  
    363363        {
    364364            LogRel(("NAT: error %lu occured on capacity detection operation\n", ret));
    365             return VERR_INVALID_PARAMETER; /* @todo: find better error code */
     365            return -1;
    366366        }
    367367       
     
    369369        {
    370370            LogRel(("NAT: Win socket API returns non capacity\n"));
    371             return VERR_INVALID_PARAMETER; /* @todo: find better error code */
     371            return -1;
    372372        }
    373373       
     
    376376        {
    377377            LogRel(("NAT: No memory available \n"));
    378             return VERR_NO_MEMORY;
     378            return -1;
    379379        }
    380380
     
    383383        {
    384384            LogRel(("NAT: error %lu occured on fetching adapters info\n", ret));
    385             return VERR_INVALID_PARAMETER; /* @todo: find better error code */
     385            return -1;
    386386        }
    387387        addr = addresses;
     
    433433        /* Win 2000 and earlier */
    434434    }
    435     return VINF_SUCCESS;
     435    return 0;
    436436}
    437437# endif /* VBOX_WITH_MULTI_DNS */
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