VirtualBox

Changeset 35553 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Jan 14, 2011 12:02:56 AM (14 years ago)
Author:
vboxsync
Message:

Main/Medium: Query the capabilites of the target format used for the diff image and not the capabilities of the image we create the diff for. Fixes creating snapshots of images which don't support diff images (Raw for example)

File:
1 edited

Legend:

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

    r35368 r35553  
    61906190        Utf8Str targetFormat(pTarget->m->strFormat);
    61916191        Utf8Str targetLocation(pTarget->m->strLocationFull);
    6192         uint64_t capabilities = m->formatObj->getCapabilities();
     6192        uint64_t capabilities = pTarget->m->formatObj->getCapabilities();
    61936193        ComAssertThrow(capabilities & VD_CAP_CREATE_DYNAMIC, E_FAIL);
    61946194
Note: See TracChangeset for help on using the changeset viewer.

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