--- src/VBox/Main/ConsoleImpl2.cpp.orig	2009-09-07 21:35:21.000000000 +0200
+++ src/VBox/Main/ConsoleImpl2.cpp	2009-09-07 21:36:35.000000000 +0200
@@ -2714,10 +2714,9 @@
             {
                 hrc = virtualBox->GetExtraData(BstrFmt("HostOnly/%s/IPNetMask", pszHifName), tmpMask.asOutParam());
                 if (SUCCEEDED(hrc) && !tmpMask.isEmpty())
-                    hrc = hostInterface->EnableStaticIpConfig(BstrFmt("HostOnly/%s/IPAddress", pszHifName),
-                                                              BstrFmt("HostOnly/%s/IPNetMask", pszHifName));
+                    hrc = hostInterface->EnableStaticIpConfig(tmpAddr, tmpMask);
                 else
-                    hrc = hostInterface->EnableStaticIpConfig(BstrFmt("HostOnly/%s/IPAddress", pszHifName),
+                    hrc = hostInterface->EnableStaticIpConfig(tmpAddr,
                                                               Bstr(VBOXNET_IPV4MASK_DEFAULT));
             }
             else

