VirtualBox

Changeset 64157 in vbox for trunk


Ignore:
Timestamp:
Oct 5, 2016 1:57:31 PM (8 years ago)
Author:
vboxsync
Message:

DrvSCSI: Propagate the status of the eject oepration up to the caller so it can set the right status code

File:
1 edited

Legend:

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

    r64154 r64157  
    5151    /** Event semaphore to signal when complete. */
    5252    RTSEMEVENT       hSemEvt;
     53    /** Status of the eject operation. */
     54    int              rcReq;
    5355} DRVSCSIEJECTSTATE;
    5456typedef DRVSCSIEJECTSTATE *PDRVSCSIEJECTSTATE;
     
    290292            /* Wait for completion. */
    291293            rc = RTSemEventWait(pEjectState->hSemEvt, RT_INDEFINITE_WAIT);
     294            if (RT_SUCCESS(rc))
     295                rc = pEjectState->rcReq;
    292296        }
    293297        else
     
    10661070    }
    10671071
     1072    pEjectState->rcReq = rc;
    10681073    RTSemEventSignal(pEjectState->hSemEvt);
    10691074    return true;
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