VirtualBox

Changeset 40258 in vbox


Ignore:
Timestamp:
Feb 27, 2012 9:48:41 AM (13 years ago)
Author:
vboxsync
Message:

Storage/VD: errors during closing all images in VDDestroy shouldn't be lost

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd.h

    r39798 r40258  
    470470 * If container has opened image files they will be closed.
    471471 *
    472  * @param   pDisk           Pointer to HDD container.
    473  */
    474 VBOXDDU_DECL(void) VDDestroy(PVBOXHDD pDisk);
     472 * @return  VBox status code.
     473 * @param   pDisk           Pointer to HDD container.
     474 */
     475VBOXDDU_DECL(int) VDDestroy(PVBOXHDD pDisk);
    475476
    476477/**
  • trunk/src/VBox/Storage/VD.cpp

    r39928 r40258  
    51345134 * If container has opened image files they will be closed.
    51355135 *
     5136 * @returns VBox status code.
    51365137 * @param   pDisk           Pointer to HDD container.
    51375138 */
    5138 VBOXDDU_DECL(void) VDDestroy(PVBOXHDD pDisk)
    5139 {
     5139VBOXDDU_DECL(int) VDDestroy(PVBOXHDD pDisk)
     5140{
     5141    int rc = VINF_SUCCESS;
    51405142    LogFlowFunc(("pDisk=%#p\n", pDisk));
    51415143    do
     
    51445146        AssertPtrBreak(pDisk);
    51455147        AssertMsg(pDisk->u32Signature == VBOXHDDDISK_SIGNATURE, ("u32Signature=%08x\n", pDisk->u32Signature));
    5146         VDCloseAll(pDisk);
     5148        rc = VDCloseAll(pDisk);
    51475149        RTCritSectDelete(&pDisk->CritSect);
    51485150        RTMemCacheDestroy(pDisk->hMemCacheIoCtx);
     
    51505152        RTMemFree(pDisk);
    51515153    } while (0);
    5152     LogFlowFunc(("returns\n"));
     5154    LogFlowFunc(("returns %Rrc\n", rc));
     5155    return rc;
    51535156}
    51545157
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