Changeset 37587 in vbox
- Timestamp:
- Jun 22, 2011 12:02:13 PM (13 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MediumFormatImpl.h
r37586 r37587 59 59 struct Data 60 60 { 61 Data() : capabilities( 0) {}61 Data() : capabilities((MediumFormatCapabilities_T)0) {} 62 62 63 63 const Utf8Str strId; -
trunk/src/VBox/Main/src-server/MediumFormatImpl.cpp
r37586 r37587 67 67 unconst(m.strName) = aVDInfo->pszBackend; 68 68 /* The capabilities of the backend. Assumes 1:1 mapping! */ 69 unconst(m.capabilities) = aVDInfo->uBackendCaps;69 unconst(m.capabilities) = (MediumFormatCapabilities_T)aVDInfo->uBackendCaps; 70 70 /* Save the supported file extensions in a list */ 71 71 if (aVDInfo->paFileExtensions) … … 184 184 unconst(m.llFileExtensions).clear(); 185 185 unconst(m.llDeviceTypes).clear(); 186 unconst(m.capabilities) = 0;186 unconst(m.capabilities) = (MediumFormatCapabilities_T)0; 187 187 unconst(m.strName).setNull(); 188 188 unconst(m.strId).setNull(); … … 230 230 /// limit (or make the argument ULONG64 after checking that COM is capable 231 231 /// of defining enums (used to represent bit flags) that contain 64-bit 232 /// values) 233 ComAssertRet(m.capabilities == ((ULONG)m.capabilities), E_FAIL); 234 235 *aCaps = (ULONG) m.capabilities; 232 /// values). Or go away from the enum/ulong hack for bit sets and use 233 /// a safearray like elsewhere. 234 ComAssertRet((uint64_t)m.capabilities == ((ULONG)m.capabilities), E_FAIL); 235 236 *aCaps = (ULONG)m.capabilities; 236 237 237 238 return S_OK;
Note:
See TracChangeset
for help on using the changeset viewer.