VirtualBox

Changeset 19218 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Apr 27, 2009 3:34:27 PM (16 years ago)
Author:
vboxsync
Message:

NetIf/win: ipconfig fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/win/NetIf-win.cpp

    r19160 r19218  
    166166        if(hr == S_OK)
    167167        {
    168             pInfo->IPAddress.u = Settings.ip;
    169             pInfo->IPNetMask.u = Settings.mask;
     168            if(Settings.ip)
     169            {
     170                pInfo->IPAddress.u = Settings.ip;
     171                pInfo->IPNetMask.u = Settings.mask;
     172            }
    170173            pInfo->bDhcpEnabled = Settings.bDhcp;
    171174        }
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