Changeset 23914 in vbox for trunk/src/VBox/Main/MediumAttachmentImpl.cpp
- Timestamp:
- Oct 20, 2009 4:31:36 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 53716
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumAttachmentImpl.cpp
r23880 r23914 58 58 HRESULT MediumAttachment::init(Machine *aParent, 59 59 Medium *aMedium, 60 StorageController *aController,60 const Bstr &aControllerName, 61 61 LONG aPort, 62 62 LONG aDevice, … … 65 65 { 66 66 LogFlowThisFuncEnter(); 67 LogFlowThisFunc(("aParent=%p aMedium=%p aController =%ls aPort=%d aDevice=%d aType=%d aImplicit=%d\n", aParent, aMedium, aController, aPort, aDevice, aType, aImplicit));67 LogFlowThisFunc(("aParent=%p aMedium=%p aControllerName=%ls aPort=%d aDevice=%d aType=%d aImplicit=%d\n", aParent, aMedium, aControllerName.raw(), aPort, aDevice, aType, aImplicit)); 68 68 69 69 if (aType == DeviceType_HardDisk) … … 78 78 m.allocate(); 79 79 m->medium = aMedium; 80 unconst(m->controller ) = aController;80 unconst(m->controllerName) = aControllerName; 81 81 unconst(m->port) = aPort; 82 82 unconst(m->device) = aDevice; … … 190 190 191 191 /* m->controller is constant during life time, no need to lock */ 192 m->controller.queryInterfaceTo(aController); 193 194 LogFlowThisFuncLeave(); 195 return S_OK; 192 /** @todo ugly hack, MediumAttachment should have a direct reference 193 * to the storage controller, but can't have that right now due to 194 * how objects are created for settings rollback support. */ 195 HRESULT rc = mParent->GetStorageControllerByName(m->controllerName, aController); 196 197 LogFlowThisFuncLeave(); 198 return rc; 196 199 } 197 200
Note:
See TracChangeset
for help on using the changeset viewer.