summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp')
-rw-r--r--src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp b/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
index 7e2de25af..62ec75d69 100644
--- a/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
+++ b/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
@@ -1,4 +1,4 @@
-/* $Id: HostNetworkInterfaceImpl.cpp $ */
+/* $Id: HostNetworkInterfaceImpl.cpp 37353 2011-06-07 14:35:02Z vboxsync $ */
/** @file
*
@@ -42,12 +42,13 @@ HostNetworkInterface::~HostNetworkInterface()
HRESULT HostNetworkInterface::FinalConstruct()
{
- return S_OK;
+ return BaseFinalConstruct();
}
void HostNetworkInterface::FinalRelease()
{
uninit ();
+ BaseFinalRelease();
}
// public initializer/uninitializer for internal purposes only
@@ -550,7 +551,6 @@ STDMETHODIMP HostNetworkInterface::DhcpRediscover ()
HRESULT HostNetworkInterface::setVirtualBox(VirtualBox *pVBox)
{
- HRESULT hrc;
AutoCaller autoCaller(this);
if (FAILED(autoCaller.rc())) return autoCaller.rc();
unconst(mVBox) = pVBox;
@@ -560,7 +560,7 @@ HRESULT HostNetworkInterface::setVirtualBox(VirtualBox *pVBox)
if (m.IPAddress == 0 && mIfType == HostNetworkInterfaceType_HostOnly)
{
Bstr tmpAddr, tmpMask;
- hrc = mVBox->GetExtraData(BstrFmt("HostOnly/%ls/IPAddress", mInterfaceName.raw()).raw(), tmpAddr.asOutParam());
+ HRESULT hrc = mVBox->GetExtraData(BstrFmt("HostOnly/%ls/IPAddress", mInterfaceName.raw()).raw(), tmpAddr.asOutParam());
hrc = mVBox->GetExtraData(BstrFmt("HostOnly/%ls/IPNetMask", mInterfaceName.raw()).raw(), tmpMask.asOutParam());
if (tmpAddr.isEmpty())
{
@@ -572,7 +572,7 @@ HRESULT HostNetworkInterface::setVirtualBox(VirtualBox *pVBox)
* change the address on host's interface as well and we want to
* postpone the change until VM actually starts.
*/
- hrc = mVBox->SetExtraData(BstrFmt("HostOnly/%ls/IPAddress",
+ hrc = mVBox->SetExtraData(BstrFmt("HostOnly/%ls/IPAddress",
mInterfaceName.raw()).raw(),
tmpAddr.raw());
ComAssertComRCRet(hrc, hrc);
@@ -581,7 +581,7 @@ HRESULT HostNetworkInterface::setVirtualBox(VirtualBox *pVBox)
if (tmpMask.isEmpty())
{
tmpMask = Bstr(VBOXNET_IPV4MASK_DEFAULT);
- hrc = mVBox->SetExtraData(BstrFmt("HostOnly/%ls/IPNetMask",
+ hrc = mVBox->SetExtraData(BstrFmt("HostOnly/%ls/IPNetMask",
mInterfaceName.raw()).raw(),
Bstr(VBOXNET_IPV4MASK_DEFAULT).raw());
ComAssertComRCRet(hrc, hrc);
@@ -593,7 +593,7 @@ HRESULT HostNetworkInterface::setVirtualBox(VirtualBox *pVBox)
if (m.IPV6Address.isEmpty())
{
Bstr tmpPrefixLen;
- hrc = mVBox->GetExtraData(BstrFmt("HostOnly/%ls/IPV6Address", mInterfaceName.raw()).raw(), m.IPV6Address.asOutParam());
+ HRESULT hrc = mVBox->GetExtraData(BstrFmt("HostOnly/%ls/IPV6Address", mInterfaceName.raw()).raw(), m.IPV6Address.asOutParam());
if (!m.IPV6Address.isEmpty())
{
hrc = mVBox->GetExtraData(BstrFmt("HostOnly/%ls/IPV6PrefixLen", mInterfaceName.raw()).raw(), tmpPrefixLen.asOutParam());