VirtualBox

Changeset 40258 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Feb 27, 2012 9:48:41 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76472
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified 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.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette