Changeset 6518 in vbox for trunk/src/VBox/Additions/common
- Timestamp:
- Jan 28, 2008 4:39:32 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27535
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r6510 r6518 68 68 * @param cy Pointer height. 69 69 * @param pvImg Pointer to the image data (can be NULL). 70 * @param cb Req The complete size of the request.70 * @param cbImg Size of the image data pointed to by pvImg. 71 71 */ 72 VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t cx, uint32_t cy, const void *pvImg, size_t cb Req)72 VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t cx, uint32_t cy, const void *pvImg, size_t cbImg) 73 73 { 74 74 VMMDevReqMousePointer *pReq; 75 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, cbReq, VMMDevReq_SetPointerShape);75 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, RT_OFFSETOF(VMMDevReqMousePointer, pointerData) + cbImg, VMMDevReq_SetPointerShape); 76 76 if (RT_SUCCESS(rc)) 77 77 { … … 82 82 pReq->height = cy; 83 83 if (pvImg) 84 memcpy(pReq->pointerData, pvImg, cb Req - sizeof(VMMDevReqMousePointer) + sizeof(pReq->pointerData));84 memcpy(pReq->pointerData, pvImg, cbImg); 85 85 86 86 rc = vbglR3GRPerform(&pReq->header);
Note:
See TracChangeset
for help on using the changeset viewer.