Changeset 70991 in vbox for trunk/src/VBox/Main/src-server/MediumImpl.cpp
- Timestamp:
- Feb 13, 2018 10:59:14 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120838
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r69500 r70991 3018 3018 if (suffix.compare("RAW", Utf8Str::CaseInsensitive) == 0) 3019 3019 { 3020 if (i_getDeviceType() == DeviceType_DVD) 3021 suffix = "iso"; 3022 else 3020 DeviceType_T devType = i_getDeviceType(); 3021 switch (devType) 3023 3022 { 3024 rc = setError(VERR_NOT_A_FILE, 3025 tr("Medium '%s' has RAW type. \"Move\" operation isn't supported for this type."), 3026 i_getLocationFull().c_str()); 3027 throw rc; 3023 case DeviceType_DVD: 3024 suffix = "iso"; 3025 break; 3026 case DeviceType_Floppy: 3027 suffix = "img"; 3028 break; 3029 default: 3030 rc = setError(VERR_NOT_A_FILE, 3031 tr("Medium '%s' has RAW type. \"Move\" operation isn't supported for this type."), 3032 i_getLocationFull().c_str()); 3033 throw rc; 3028 3034 } 3029 3035 }
Note:
See TracChangeset
for help on using the changeset viewer.