VirtualBox

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


Ignore:
Timestamp:
Oct 19, 2018 2:24:23 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125961
Message:

Main/MediumIO: Need to call init method on the progress object of course to make it work...

File:
1 edited

Legend:

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

    r74938 r74944  
    799799    MediumIO::StreamTask *pTask = NULL;
    800800
    801     pProgress.createObject();
    802     pDataStream.createObject();
    803 
    804801    try
    805802    {
     803        pDataStream.createObject();
    806804        rc = pDataStream->init(aBufferSize);
     805        if (FAILED(rc))
     806            throw rc;
     807
     808        pProgress.createObject();
     809        rc = pProgress->init(m->ptrVirtualBox,
     810                             static_cast<IMediumIO*>(this),
     811                             BstrFmt(tr("Converting medium '%s' to data stream"), m->ptrMedium->i_getLocationFull().c_str()),
     812                             TRUE /* aCancelable */);
    807813        if (FAILED(rc))
    808814            throw rc;
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