- Timestamp:
- Jan 20, 2011 5:47:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r35560 r35661 3723 3723 &pszApp); 3724 3724 Assert(hrc == S_OK); 3725 if (hrc == S_OK) 3726 { 3727 /* get the adapter's INetCfgComponent*/ 3728 hrc = VBoxNetCfgWinGetComponentByGuid(pNc, &GUID_DEVCLASS_NET, (GUID*)hostIFGuid.raw(), pAdaptorComponent.asOutParam()); 3729 if (hrc != S_OK) 3730 { 3731 VBoxNetCfgWinReleaseINetCfg(pNc, FALSE /*fHasWriteLock*/); 3732 LogRel(("NetworkAttachmentType_Bridged: VBoxNetCfgWinGetComponentByGuid failed, hrc (0x%x)", hrc)); 3733 H(); 3734 } 3725 if (hrc != S_OK) 3726 { 3727 LogRel(("NetworkAttachmentType_Bridged: Failed to get NetCfg, hrc=%Rhrc (0x%x)\n", hrc, hrc)); 3728 H(); 3729 } 3730 3731 /* get the adapter's INetCfgComponent*/ 3732 hrc = VBoxNetCfgWinGetComponentByGuid(pNc, &GUID_DEVCLASS_NET, (GUID*)hostIFGuid.raw(), pAdaptorComponent.asOutParam()); 3733 if (hrc != S_OK) 3734 { 3735 VBoxNetCfgWinReleaseINetCfg(pNc, FALSE /*fHasWriteLock*/); 3736 LogRel(("NetworkAttachmentType_Bridged: VBoxNetCfgWinGetComponentByGuid failed, hrc (0x%x)", hrc)); 3737 H(); 3735 3738 } 3736 3739 #define VBOX_WIN_BINDNAME_PREFIX "\\DEVICE\\" … … 3780 3783 H(); 3781 3784 } 3785 3786 rc = VINF_SUCCESS; 3782 3787 const char *pszTrunk = szTrunkName; 3783 3788 /* we're not releasing the INetCfg stuff here since we use it later to figure out whether it is wireless */ … … 4101 4106 &pszApp); 4102 4107 Assert(hrc == S_OK); 4103 if (hrc == S_OK) 4104 { 4105 /* get the adapter's INetCfgComponent*/ 4106 hrc = VBoxNetCfgWinGetComponentByGuid(pNc, &GUID_DEVCLASS_NET, (GUID*)hostIFGuid.raw(), pAdaptorComponent.asOutParam()); 4107 if (hrc != S_OK) 4108 { 4109 VBoxNetCfgWinReleaseINetCfg(pNc, FALSE /*fHasWriteLock*/); 4110 LogRel(("NetworkAttachmentType_HostOnly: VBoxNetCfgWinGetComponentByGuid failed, hrc=%Rhrc (0x%x)\n", hrc, hrc)); 4111 H(); 4112 } 4108 if (hrc != S_OK) 4109 { 4110 LogRel(("NetworkAttachmentType_HostOnly: Failed to get NetCfg, hrc=%Rhrc (0x%x)\n", hrc, hrc)); 4111 H(); 4112 } 4113 4114 /* get the adapter's INetCfgComponent*/ 4115 hrc = VBoxNetCfgWinGetComponentByGuid(pNc, &GUID_DEVCLASS_NET, (GUID*)hostIFGuid.raw(), pAdaptorComponent.asOutParam()); 4116 if (hrc != S_OK) 4117 { 4118 VBoxNetCfgWinReleaseINetCfg(pNc, FALSE /*fHasWriteLock*/); 4119 LogRel(("NetworkAttachmentType_HostOnly: VBoxNetCfgWinGetComponentByGuid failed, hrc=%Rhrc (0x%x)\n", hrc, hrc)); 4120 H(); 4113 4121 } 4114 4122 #define VBOX_WIN_BINDNAME_PREFIX "\\DEVICE\\" … … 4172 4180 trunkName = Bstr(pszTrunk); 4173 4181 trunkType = TRUNKTYPE_NETADP; 4182 rc = VINF_SUCCESS; 4174 4183 # endif /* defined VBOX_WITH_NETFLT*/ 4175 4184 #elif defined(RT_OS_DARWIN)
Note:
See TracChangeset
for help on using the changeset viewer.