VirtualBox

Changeset 50900 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 26, 2014 10:00:47 PM (11 years ago)
Author:
vboxsync
Message:

Additions/common/VBoxVideo: fix a return value.

Location:
trunk/src/VBox/Additions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/common/VBoxMPCommon.h

    r49450 r50900  
    6969inline bool VBoxMPCmnUpdatePointerShape(PVBOXMP_COMMON pCommon, PVIDEO_POINTER_ATTRIBUTES pAttrs, uint32_t cbLength)
    7070{
    71     return VBoxHGSMIUpdatePointerShape(&pCommon->guestCtx,
     71    int rc;
     72    rc =   VBoxHGSMIUpdatePointerShape(&pCommon->guestCtx,
    7273                                       pAttrs->Enable & 0x0000FFFF,
    7374                                       (pAttrs->Enable >> 16) & 0xFF,
     
    7576                                       pAttrs->Width, pAttrs->Height, pAttrs->Pixels,
    7677                                       cbLength - sizeof(VIDEO_POINTER_ATTRIBUTES));
     78    return RT_SUCCESS(rc);
    7779}
    7880
  • trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp

    r50542 r50900  
    495495 *
    496496 * @returns  success or failure
    497  * @todo  why not return an iprt status code?
    498497 * @param  fFlags    cursor flags, @see VMMDevReqMousePointer::fFlags
    499498 * @param  cHotX     horizontal position of the hot spot
     
    504503 * @param  cbLength  size in bytes of the pixel data
    505504 */
    506 RTDECL(bool) VBoxHGSMIUpdatePointerShape(PHGSMIGUESTCOMMANDCONTEXT pCtx,
     505RTDECL(int) VBoxHGSMIUpdatePointerShape(PHGSMIGUESTCOMMANDCONTEXT pCtx,
    507506                                         uint32_t fFlags,
    508507                                         uint32_t cHotX,
     
    532531        LogFunc(("calculated pointer data size is too big (%d bytes, limit %d)\n",
    533532                 cbData, cbLength));
    534         return false;
     533        return VERR_INVALID_PARAMETER;
    535534    }
    536535    /* Allocate the IO buffer. */
     
    563562        rc = VERR_NO_MEMORY;
    564563    LogFlowFunc(("rc %d\n", rc));
    565     return RT_SUCCESS(rc);
     564    return rc;
    566565}
    567566
  • trunk/src/VBox/Additions/x11/vboxvideo/pointer.c

    r44528 r50900  
    532532    }
    533533
    534     rc = VBoxHGSMIUpdatePointerShape(&pVBox->guestCtx, fFlags, bitsp->xhot,
    535                                      bitsp->yhot, w, h, p, sizeData);
     534    VBoxHGSMIUpdatePointerShape(&pVBox->guestCtx, fFlags, bitsp->xhot,
     535                                bitsp->yhot, w, h, p, sizeData);
    536536    free(p);
    537537}
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