Changeset 10900 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 26, 2008 2:42:17 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r10898 r10900 46 46 #include <VBox/HostServices/VBoxClipboardSvc.h> 47 47 #ifdef VBOX_WITH_GUEST_PROPS 48 # include <VBox/HostServices/GuestPropertySvc.h>48 # include <VBox/HostServices/GuestPropertySvc.h> 49 49 #endif /* VBOX_WITH_GUEST_PROPS */ 50 #include <VBox/intnet.h> 50 51 51 52 … … 1201 1202 Bstr hostInterfaceName; 1202 1203 hrc = networkAdapter->COMGETTER(HostInterface)(hostInterfaceName.asOutParam()); H(); 1203 char szTrunk Name[8];1204 strncpy(szTrunk Name, Utf8Str(hostInterfaceName).raw(), sizeof(szTrunkName));1205 char *pszColon = (char *)memchr(szTrunk Name, ':', sizeof(szTrunkName));1204 char szTrunk[8]; 1205 strncpy(szTrunk, Utf8Str(hostInterfaceName).raw(), sizeof(szTrunk)); 1206 char *pszColon = (char *)memchr(szTrunk, ':', sizeof(szTrunk)); 1206 1207 if (!pszColon) 1207 1208 { … … 1215 1216 rc = CFGMR3InsertString(pLunL0, "Driver", "IntNet"); RC_CHECK(); 1216 1217 rc = CFGMR3InsertNode(pLunL0, "Config", &pCfg); RC_CHECK(); 1217 rc = CFGMR3InsertString(pCfg, "TrunkName", szTrunkName); RC_CHECK(); 1218 rc = CFGMR3InsertString(pCfg, "Trunk", szTrunk); RC_CHECK(); 1219 rc = CFGMR3InsertInteger(pCfg, "TrunkType", kIntNetTrunkType_NetFlt); RC_CHECK(); 1218 1220 char szNetwork[80]; 1219 RTStrPrintf(szNetwork, sizeof(szNetwork), "HostInterfaceNetworking-%s\n", szTrunk Name);1221 RTStrPrintf(szNetwork, sizeof(szNetwork), "HostInterfaceNetworking-%s\n", szTrunk); 1220 1222 rc = CFGMR3InsertString(pCfg, "Network", szNetwork); RC_CHECK(); 1221 1223
Note:
See TracChangeset
for help on using the changeset viewer.