- Timestamp:
- Nov 21, 2013 4:36:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/NATNetworkImpl.cpp
r49587 r49612 894 894 * 6. start dhcp server. 895 895 */ 896 intrc = mVirtualBox->FindDHCPServerByNetworkName(mName.raw(),896 HRESULT hrc = mVirtualBox->FindDHCPServerByNetworkName(mName.raw(), 897 897 m->dhcpServer.asOutParam()); 898 switch ( rc)898 switch (hrc) 899 899 { 900 900 case E_INVALIDARG: 901 901 /* server haven't beeen found let create it then */ 902 rc = mVirtualBox->CreateDHCPServer(mName.raw(),902 hrc = mVirtualBox->CreateDHCPServer(mName.raw(), 903 903 m->dhcpServer.asOutParam()); 904 if (FAILED( rc))904 if (FAILED(hrc)) 905 905 return E_FAIL; 906 906 /* breakthrough */ … … 913 913 Utf8Str(m->IPv4DhcpServerUpperIp.raw()).c_str())); 914 914 915 rc = m->dhcpServer->COMSETTER(Enabled)(true);915 hrc = m->dhcpServer->COMSETTER(Enabled)(true); 916 916 917 917 BSTR dhcpip = NULL; … … 924 924 m->IPv4DhcpServerLowerIp.cloneTo(&lowerip); 925 925 m->IPv4DhcpServerUpperIp.cloneTo(&upperip); 926 rc = m->dhcpServer->SetConfiguration(dhcpip,926 hrc = m->dhcpServer->SetConfiguration(dhcpip, 927 927 netmask, 928 928 lowerip, … … 939 939 m->dhcpServer->AddGlobalOption(DhcpOpt_Router, m->IPv4Gateway.raw()); 940 940 941 rc = m->dhcpServer->Start(mName.raw(), Bstr("").raw(), aTrunkType);942 if (FAILED( rc))941 hrc = m->dhcpServer->Start(mName.raw(), Bstr("").raw(), aTrunkType); 942 if (FAILED(hrc)) 943 943 { 944 944 m->dhcpServer.setNull();
Note:
See TracChangeset
for help on using the changeset viewer.