Changeset 25326 in vbox
- Timestamp:
- Dec 11, 2009 1:09:40 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55907
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r25310 r25326 6346 6346 dev.lPort, 6347 6347 dev.lDevice, 6348 dev.deviceType); 6348 dev.deviceType, 6349 dev.fPassThrough); 6349 6350 if (FAILED(rc)) break; 6350 6351 … … 7153 7154 if (pMedium) 7154 7155 { 7155 BOOL fHostDrive = false;7156 BOOL fHostDrive = FALSE; 7156 7157 rc = pMedium->COMGETTER(HostDrive)(&fHostDrive); 7157 7158 if (FAILED(rc)) -
trunk/src/VBox/Main/MediumAttachmentImpl.cpp
r25310 r25326 102 102 * @param aPort Port number. 103 103 * @param aDevice Device number on the port. 104 * @param a Implicit Wether the attachment contains an implicitly created diff.104 * @param aPassthrough Wether accesses are directly passed to the host drive. 105 105 */ 106 106 HRESULT MediumAttachment::init(Machine *aParent, … … 110 110 LONG aDevice, 111 111 DeviceType_T aType, 112 bool a Implicit /*= false*/)113 { 114 LogFlowThisFuncEnter(); 115 LogFlowThisFunc(("aParent=%p aMedium=%p aControllerName=%ls aPort=%d aDevice=%d aType=%d a Implicit=%d\n", aParent, aMedium, aControllerName.raw(), aPort, aDevice, aType, aImplicit));112 bool aPassthrough) 113 { 114 LogFlowThisFuncEnter(); 115 LogFlowThisFunc(("aParent=%p aMedium=%p aControllerName=%ls aPort=%d aDevice=%d aType=%d aPassthrough=%d\n", aParent, aMedium, aControllerName.raw(), aPort, aDevice, aType, aPassthrough)); 116 116 117 117 if (aType == DeviceType_HardDisk) … … 131 131 unconst(m->bd->lPort) = aPort; 132 132 unconst(m->bd->lDevice) = aDevice; 133 unconst(m->bd->type) = aType; 134 135 m->bd->fPassthrough = false; 136 m->bd->fImplicit = aImplicit; 133 unconst(m->bd->type) = aType; 134 135 m->bd->fPassthrough = aPassthrough; 136 /* Newly created attachments never have an implicitly created medium 137 * associated with them. Implicit diff image creation happens later. */ 138 m->bd->fImplicit = false; 137 139 138 140 /* Confirm a successful initialization when it's the case */ … … 146 148 psz ? psz - ctlName.c_str() : 4, ctlName.c_str(), 147 149 aPort, aDevice, Global::stringifyDeviceType(aType), 148 aImplicit ? ":I" : "");150 m->bd->fImplicit ? ":I" : ""); 149 151 150 152 LogFlowThisFunc(("LEAVE - %s\n", getLogName())); -
trunk/src/VBox/Main/include/MediumAttachmentImpl.h
r25200 r25326 56 56 LONG aDevice, 57 57 DeviceType_T aType, 58 bool aImplicit = false);58 bool fPassthrough); 59 59 void uninit(); 60 60
Note:
See TracChangeset
for help on using the changeset viewer.