Changeset 14349 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Nov 19, 2008 12:44:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r14327 r14349 1165 1165 1166 1166 Bstr HifName; 1167 hrc = networkAdapter->COMGETTER(HostInterface)(HifName.asOutParam()); H(); 1167 hrc = networkAdapter->COMGETTER(HostInterface)(HifName.asOutParam()); 1168 if(FAILED(hrc)) 1169 { 1170 LogRel(("NetworkAttachmentType_HostInterface: COMGETTER(HostInterface) failed, hrc (0x%x)", hrc)); 1171 H(); 1172 } 1173 1168 1174 Utf8Str HifNameUtf8(HifName); 1169 1175 const char *pszHifName = HifNameUtf8.raw(); … … 1207 1213 # elif defined(RT_OS_WINDOWS) 1208 1214 ComPtr<IHostNetworkInterfaceCollection> coll; 1209 hrc = host->COMGETTER(NetworkInterfaces)(coll.asOutParam()); H(); 1215 hrc = host->COMGETTER(NetworkInterfaces)(coll.asOutParam()); 1216 if(FAILED(hrc)) 1217 { 1218 LogRel(("NetworkAttachmentType_HostInterface: COMGETTER(NetworkInterfaces) failed, hrc (0x%x)", hrc)); 1219 H(); 1220 } 1210 1221 ComPtr<IHostNetworkInterface> hostInterface; 1211 1222 rc = coll->FindByName(HifName, hostInterface.asOutParam()); … … 1213 1224 { 1214 1225 AssertBreakpoint(); 1226 LogRel(("NetworkAttachmentType_HostInterface: FindByName failed, rc (0x%x)", rc)); 1215 1227 return VMSetError(pVM, VERR_INTERNAL_ERROR, RT_SRC_POS, 1216 1228 N_("Inexistent host networking interface, name '%ls'"), … … 1219 1231 1220 1232 Guid hostIFGuid; 1221 hrc = hostInterface->COMGETTER(Id)(hostIFGuid.asOutParam()); H(); 1233 hrc = hostInterface->COMGETTER(Id)(hostIFGuid.asOutParam()); 1234 if(FAILED(hrc)) 1235 { 1236 LogRel(("NetworkAttachmentType_HostInterface: COMGETTER(Id) failed, hrc (0x%x)", hrc)); 1237 H(); 1238 } 1222 1239 char szDriverGUID[RTUUID_STR_LENGTH]; 1223 1240 strcpy(szDriverGUID , hostIFGuid.toString().raw());
Note:
See TracChangeset
for help on using the changeset viewer.