Changeset 50900 in vbox for trunk/src/VBox
- Timestamp:
- Mar 26, 2014 10:00:47 PM (11 years ago)
- 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 69 69 inline bool VBoxMPCmnUpdatePointerShape(PVBOXMP_COMMON pCommon, PVIDEO_POINTER_ATTRIBUTES pAttrs, uint32_t cbLength) 70 70 { 71 return VBoxHGSMIUpdatePointerShape(&pCommon->guestCtx, 71 int rc; 72 rc = VBoxHGSMIUpdatePointerShape(&pCommon->guestCtx, 72 73 pAttrs->Enable & 0x0000FFFF, 73 74 (pAttrs->Enable >> 16) & 0xFF, … … 75 76 pAttrs->Width, pAttrs->Height, pAttrs->Pixels, 76 77 cbLength - sizeof(VIDEO_POINTER_ATTRIBUTES)); 78 return RT_SUCCESS(rc); 77 79 } 78 80 -
trunk/src/VBox/Additions/common/VBoxVideo/HGSMIBase.cpp
r50542 r50900 495 495 * 496 496 * @returns success or failure 497 * @todo why not return an iprt status code?498 497 * @param fFlags cursor flags, @see VMMDevReqMousePointer::fFlags 499 498 * @param cHotX horizontal position of the hot spot … … 504 503 * @param cbLength size in bytes of the pixel data 505 504 */ 506 RTDECL( bool)VBoxHGSMIUpdatePointerShape(PHGSMIGUESTCOMMANDCONTEXT pCtx,505 RTDECL(int) VBoxHGSMIUpdatePointerShape(PHGSMIGUESTCOMMANDCONTEXT pCtx, 507 506 uint32_t fFlags, 508 507 uint32_t cHotX, … … 532 531 LogFunc(("calculated pointer data size is too big (%d bytes, limit %d)\n", 533 532 cbData, cbLength)); 534 return false;533 return VERR_INVALID_PARAMETER; 535 534 } 536 535 /* Allocate the IO buffer. */ … … 563 562 rc = VERR_NO_MEMORY; 564 563 LogFlowFunc(("rc %d\n", rc)); 565 return RT_SUCCESS(rc);564 return rc; 566 565 } 567 566 -
trunk/src/VBox/Additions/x11/vboxvideo/pointer.c
r44528 r50900 532 532 } 533 533 534 rc =VBoxHGSMIUpdatePointerShape(&pVBox->guestCtx, fFlags, bitsp->xhot,535 534 VBoxHGSMIUpdatePointerShape(&pVBox->guestCtx, fFlags, bitsp->xhot, 535 bitsp->yhot, w, h, p, sizeData); 536 536 free(p); 537 537 }
Note:
See TracChangeset
for help on using the changeset viewer.