VirtualBox

Changeset 107422 in vbox for trunk/src/VBox/Storage/VDI.cpp


Ignore:
Timestamp:
Jan 6, 2025 4:25:42 PM (13 days ago)
Author:
vboxsync
Message:

Storage/VDI.cpp: Bail out early in case of an error, bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VDI.cpp

    r106061 r107422  
    11831183        /* Save header. */
    11841184        rc = vdiUpdateHeaderAsync(pImage, pIoCtx);
    1185         AssertMsg(RT_SUCCESS(rc) || rc == VERR_VD_ASYNC_IO_IN_PROGRESS,
    1186                   ("vdiUpdateHeaderAsync() failed, filename=\"%s\", rc=%Rrc\n",
    1187                   pImage->pszFilename, rc));
     1185        AssertMsgReturn(RT_SUCCESS(rc) || rc == VERR_VD_ASYNC_IO_IN_PROGRESS,
     1186                        ("vdiUpdateHeaderAsync() failed, filename=\"%s\", rc=%Rrc\n",
     1187                        pImage->pszFilename, rc), rc);
    11881188        rc = vdIfIoIntFileFlush(pImage->pIfIo, pImage->pStorage, pIoCtx, NULL, NULL);
    11891189        AssertMsg(RT_SUCCESS(rc) || rc == VERR_VD_ASYNC_IO_IN_PROGRESS,
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