VirtualBox

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


Ignore:
Timestamp:
Oct 19, 2018 4:58:24 PM (6 years ago)
Author:
vboxsync
Message:

Main/MediumIO: Fix interface list mixup for the convert to stream operation

File:
1 edited

Legend:

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

    r74944 r74952  
    417417    VDINTERFACEPROGRESS IfsProgress;
    418418    PVDINTERFACE pIfsOp = NULL;
     419    PVDINTERFACE pIfsImg = NULL;
    419420    PVDISK pDstDisk;
    420421
     
    442443    IfsOutputIO.pfnFlushSync              = i_vdStreamFlush;
    443444    VDInterfaceAdd(&IfsOutputIO.Core, "stream", VDINTERFACETYPE_IO,
    444                    m_pDataStream, sizeof(VDINTERFACEIO), &pIfsOp);
     445                   m_pDataStream, sizeof(VDINTERFACEIO), &pIfsImg);
    445446
    446447    int vrc = VDCreate(NULL, VDTYPE_HDD, &pDstDisk);
     
    450451        vrc = VDCopy(mMediumIO->m->pHdd, VD_LAST_IMAGE, pDstDisk, m_strFormat.c_str(),
    451452                     "stream", false, 0, m_fMediumVariant, NULL,
    452                      VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_SEQUENTIAL, NULL,
    453                      pIfsOp, NULL);
     453                     VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_SEQUENTIAL, pIfsOp,
     454                     pIfsImg, NULL);
    454455        if (RT_FAILURE(vrc))
    455456            hrc = mMediumIO->setErrorBoth(VBOX_E_FILE_ERROR, vrc,
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