VirtualBox

Ignore:
Timestamp:
Feb 13, 2018 10:59:14 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120838
Message:

bugref:8345. Fixed the condition for moving floppy disk. Creation of floppy disk on Windows had been implemented already \(See #8527\) so try it to run on Windows. Tests are needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r69500 r70991  
    30183018                if (suffix.compare("RAW", Utf8Str::CaseInsensitive) == 0)
    30193019                {
    3020                     if (i_getDeviceType() == DeviceType_DVD)
    3021                         suffix = "iso";
    3022                     else
     3020                    DeviceType_T devType = i_getDeviceType();
     3021                    switch (devType)
    30233022                    {
    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;
    30283034                    }
    30293035                }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette