Changeset 17874 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 14, 2009 7:01:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r17872 r17874 4655 4655 STDMETHODIMP VirtualBox::CreateDhcpServer (IN_BSTR aName, IDhcpServer ** aServer) 4656 4656 { 4657 return E_NOTIMPL; 4657 CheckComArgNotNull(aName); 4658 CheckComArgNotNull(aServer); 4659 4660 AutoCaller autoCaller (this); 4661 CheckComRCReturnRC (autoCaller.rc()); 4662 4663 ComObjPtr<DhcpServer> dhcpServer; 4664 dhcpServer.createObject(); 4665 HRESULT rc = dhcpServer->init (aName); 4666 CheckComRCReturnRC (rc); 4667 4668 rc = registerDhcpServer(dhcpServer, true); 4669 CheckComRCReturnRC (rc); 4670 4671 dhcpServer.queryInterfaceTo(aServer); 4672 4673 return rc; 4658 4674 } 4659 4675 … … 4670 4686 STDMETHODIMP VirtualBox::RemoveDhcpServer (IDhcpServer * aServer) 4671 4687 { 4672 return E_NOTIMPL; 4688 CheckComArgNotNull(aServer); 4689 4690 AutoCaller autoCaller (this); 4691 CheckComRCReturnRC (autoCaller.rc()); 4692 4693 HRESULT rc = unregisterDhcpServer(static_cast<DhcpServer *>(aServer), true); 4694 4695 return rc; 4673 4696 } 4674 4697 … … 4710 4733 ComPtr<IDhcpServer> existing; 4711 4734 rc = FindDhcpServerByName(name.mutableRaw(), existing.asOutParam()); 4712 CheckComRCReturnRC (rc); 4735 if(SUCCEEDED(rc)) 4736 { 4737 return E_FAIL; 4738 } 4713 4739 4714 4740 mData.mDhcpServers.push_back (aDhcpServer);
Note:
See TracChangeset
for help on using the changeset viewer.