VirtualBox

Changeset 69322 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 25, 2017 7:06:57 PM (7 years ago)
Author:
vboxsync
Message:

Medium: for VD interface initialization have to use the simple way (previous variant is g++ specific)

File:
1 edited

Legend:

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

    r69321 r69322  
    242242        /* Set up a per-operation progress interface, can be used freely (for
    243243         * binary operations you can use it either on the source or target). */
    244         mVDIfProgress = VDINTERFACEPROGRESS_INITALIZER(aProgress->i_vdProgressCallback);
     244        mVDIfProgress.pfnProgress = aProgress->i_vdProgressCallback;
    245245        int vrc = VDInterfaceAdd(&mVDIfProgress.Core,
    246                                 "Medium::Task::vdInterfaceProgress",
    247                                 VDINTERFACETYPE_PROGRESS,
    248                                 mProgress,
    249                                 sizeof(mVDIfProgress),
    250                                 &mVDOperationIfaces);
     246                                 "Medium::Task::vdInterfaceProgress",
     247                                 VDINTERFACETYPE_PROGRESS,
     248                                 mProgress,
     249                                 sizeof(mVDIfProgress),
     250                                 &mVDOperationIfaces);
    251251        AssertRC(vrc);
    252252        if (RT_FAILURE(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