Changeset 20977 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Jun 26, 2009 2:38:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r20727 r20977 2797 2797 Bstr tmpAddr, tmpMask; 2798 2798 hrc = virtualBox->GetExtraData(Bstr("HostOnly/vboxnet0/IPAddress"), tmpAddr.asOutParam()); 2799 if (SUCCEEDED(hrc) && !tmpAddr.is Null())2799 if (SUCCEEDED(hrc) && !tmpAddr.isEmpty()) 2800 2800 { 2801 2801 hrc = virtualBox->GetExtraData(Bstr("HostOnly/vboxnet0/IPNetMask"), tmpMask.asOutParam()); 2802 if (SUCCEEDED(hrc) && !tmp Addr.isEmpty())2802 if (SUCCEEDED(hrc) && !tmpMask.isEmpty()) 2803 2803 hrc = hostInterface->EnableStaticIpConfig(tmpAddr, tmpMask); 2804 else 2805 hrc = hostInterface->EnableStaticIpConfig(tmpAddr, 2806 Bstr(VBOXNET_IPV4MASK_DEFAULT)); 2804 2807 } 2805 2808 else … … 2811 2814 if (SUCCEEDED(hrc)) 2812 2815 hrc = virtualBox->GetExtraData(Bstr("HostOnly/vboxnet0/IPV6NetMask"), tmpMask.asOutParam()); 2813 if (SUCCEEDED(hrc) && !tmpAddr.isEmpty() )2816 if (SUCCEEDED(hrc) && !tmpAddr.isEmpty() && !tmpMask.isEmpty()) 2814 2817 hrc = hostInterface->EnableStaticIpConfigV6(tmpAddr, Utf8Str(tmpMask).toUInt32()); 2815 2818 #endif
Note:
See TracChangeset
for help on using the changeset viewer.