Changeset 35804 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Feb 1, 2011 9:38:43 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r35785 r35804 1316 1316 { 1317 1317 ComPtr<IMedium> drive = drivevec[i]; 1318 Bstr name, location ;1318 Bstr name, location, id; 1319 1319 rc = drive->COMGETTER(Name)(name.asOutParam()); 1320 1320 if (FAILED(rc)) return rc; 1321 1321 rc = drive->COMGETTER(Location)(location.asOutParam()); 1322 1322 if (FAILED(rc)) return rc; 1323 if (name == aName || location == aName) 1323 rc = drive->COMGETTER(Id)(id.asOutParam()); 1324 if (FAILED(rc)) return rc; 1325 if ( name == aName 1326 || location == aName 1327 || (!Guid(aName).isEmpty() && aName == id)) 1324 1328 return drive.queryInterfaceTo(aDrive); 1325 1329 }
Note:
See TracChangeset
for help on using the changeset viewer.