Changeset 3093 in vbox
- Timestamp:
- Jun 11, 2007 4:36:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HardDiskImpl.cpp
r3043 r3093 1069 1069 1070 1070 HardDiskStorageType_T order [2]; 1071 size_t cOrder = ELEMENTS (order); 1071 1072 1072 1073 if (RTPathCompare (ext, ".vmdk") == 0) 1073 1074 { 1075 /// @todo This is a hack. The proper solution would be to save the 1076 /// error info from the first try and restore that if everything fails. 1077 /// That way a non-working VMDK will get a proper VMDK diagnostics 1078 /// message and not some incomprehensible VDI error. 1074 1079 order [0] = HardDiskStorageType_VMDKImage; 1075 order [1] = HardDiskStorageType_VirtualDiskImage;1080 cOrder = 1; 1076 1081 } 1077 1082 else … … 1081 1086 } 1082 1087 1083 for (size_t i = 0; i < ELEMENTS (order); ++ i)1088 for (size_t i = 0; i < cOrder; ++ i) 1084 1089 { 1085 1090 switch (order [i])
Note:
See TracChangeset
for help on using the changeset viewer.