VirtualBox

Ignore:
Timestamp:
Mar 12, 2010 10:27:04 AM (15 years ago)
Author:
vboxsync
Message:

VBoxGuestR3LibSeamless.cpp: Initialize (poison) the output members of the request structure. Doxygen @retval is for explaining @returns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibSeamless.cpp

    r27309 r27318  
    5858 * Wait for a seamless mode change event.
    5959 *
    60  * @returns IPRT status value
    61  * @retval  pMode on success, the seamless mode to switch into (i.e. disabled, visible region
    62  *                or host window)
     60 * @returns IPRT status value.
     61 * @param[out] pMode    On success, the seamless mode to switch into (i.e.
     62 *                      disabled, visible region or host window).
    6363 */
    6464VBGLR3DECL(int) VbglR3SeamlessWaitEvent(VMMDevSeamlessMode *pMode)
     
    8484            /* get the seamless change request */
    8585            vmmdevInitRequest(&seamlessChangeRequest.header, VMMDevReq_GetSeamlessChangeRequest);
     86            seamlessChangeRequest.mode = (VMMDevSeamlessMode)-1;
    8687            seamlessChangeRequest.eventAck = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST;
    8788            rc = vbglR3GRPerform(&seamlessChangeRequest.header);
     
    101102 * Request the last seamless mode switch from the host again.
    102103 *
    103  * @returns IPRT status value
    104  * @retval  pMode on success, the seamless mode that was switched into (i.e.
    105  *          disabled, visible region or host window)
     104 * @returns IPRT status value.
     105 * @param[out] pMode    On success, the seamless mode that was switched
     106 *                      into (i.e. disabled, visible region or host window).
    106107 */
    107108VBGLR3DECL(int) VbglR3SeamlessGetLastEvent(VMMDevSeamlessMode *pMode)
    108109{
     110    VMMDevSeamlessChangeRequest seamlessChangeRequest;
    109111    int rc;
    110112
     
    112114    AssertPtrReturn(pMode, VERR_INVALID_PARAMETER);
    113115#endif
    114     VMMDevSeamlessChangeRequest seamlessChangeRequest;
    115116
    116117    /* get the seamless change request */
    117118    vmmdevInitRequest(&seamlessChangeRequest.header, VMMDevReq_GetSeamlessChangeRequest);
     119    seamlessChangeRequest.mode = (VMMDevSeamlessMode)-1;
    118120    seamlessChangeRequest.eventAck = VMMDEV_EVENT_SEAMLESS_MODE_CHANGE_REQUEST;
    119121    rc = vbglR3GRPerform(&seamlessChangeRequest.header);
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