VirtualBox

Ignore:
Timestamp:
Dec 9, 2008 11:04:53 AM (16 years ago)
Author:
vboxsync
Message:

Storage/DrvVD: fix status codes to match the function specs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DrvVD.cpp

    r14780 r15156  
    552552    PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface);
    553553    int rc = VDSetPCHSGeometry(pThis->pDisk, VD_LAST_IMAGE, pPCHSGeometry);
     554    if (rc == VERR_VDI_GEOMETRY_NOT_SET)
     555        rc = VERR_PDM_GEOMETRY_NOT_SET;
    554556    LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc));
    555557    return rc;
     
    581583    PVBOXDISK pThis = PDMIMEDIA_2_VBOXDISK(pInterface);
    582584    int rc = VDSetLCHSGeometry(pThis->pDisk, VD_LAST_IMAGE, pLCHSGeometry);
     585    if (rc == VERR_VDI_GEOMETRY_NOT_SET)
     586        rc = VERR_PDM_GEOMETRY_NOT_SET;
    583587    LogFlow(("%s: returns %Rrc\n", __FUNCTION__, rc));
    584588    return rc;
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