VirtualBox

儲存庫 vbox 的更動 18150


忽略:
時間撮記:
2009-3-23 下午04:29:52 (16 年 以前)
作者:
vboxsync
訊息:

Storage/VBoxHDD: small cleanup in VDClose, don't assert on normal failure path.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/Storage/VBoxHDD.cpp

    r17970 r18150  
    21252125VBOXDDU_DECL(int) VDClose(PVBOXHDD pDisk, bool fDelete)
    21262126{
    2127     int rc = VINF_SUCCESS;;
     2127    int rc = VINF_SUCCESS;
    21282128
    21292129    LogFlowFunc(("pDisk=%#p fDelete=%d\n", pDisk, fDelete));
     
    21352135
    21362136        PVDIMAGE pImage = pDisk->pLast;
    2137         AssertPtrBreakStmt(pImage, rc = VERR_VD_NOT_OPENED);
     2137        if (!pImage)
     2138        {
     2139            rc = VERR_VD_NOT_OPENED;
     2140            break;
     2141        }
    21382142        unsigned uOpenFlags = pImage->Backend->pfnGetOpenFlags(pImage->pvBackendData);
    21392143        /* Remove image from list of opened images. */
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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