Changeset 23328 in vbox
- Timestamp:
- Sep 25, 2009 11:48:22 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 52835
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r23304 r23328 2143 2143 MediumAttachment *pAttach = *it; 2144 2144 ComObjPtr<Medium> pMedium = pAttach->medium(); 2145 Assert(!pMedium.isNull()); 2145 Assert(!pMedium.isNull() || pAttach->type() != DeviceType_HardDisk); 2146 if (pMedium.isNull()) 2147 continue; 2146 2148 2147 2149 if (pMedium->base(&level).equalsTo(medium)) … … 2208 2210 ++it) 2209 2211 { 2212 MediumAttachment *pAttach = *it; 2213 ComObjPtr<Medium> pMedium = pAttach->medium(); 2214 Assert(!pMedium.isNull() || pAttach->type() != DeviceType_HardDisk); 2215 if (pMedium.isNull()) 2216 continue; 2217 2210 2218 uint32_t level = 0; 2211 if ( (*it)->medium()->base(&level).equalsTo(medium))2219 if (pMedium->base(&level).equalsTo(medium)) 2212 2220 { 2213 2221 /* matched device, channel and bus (i.e. attached to the
Note:
See TracChangeset
for help on using the changeset viewer.