Changeset 6510 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Jan 25, 2008 10:56:25 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27519
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r6507 r6510 68 68 * @param cy Pointer height. 69 69 * @param pvImg Pointer to the image data (can be NULL). 70 * @param cbImg The size of the image data not including the pre-allocated area. 71 * This should be the size of the image data exceeding the size of 72 * the VMMDevReqMousePointer structure. 70 * @param cbReq The complete size of the request. 73 71 */ 74 VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t cx, uint32_t cy, const void *pvImg, size_t cb Img)72 VBGLR3DECL(int) VbglR3SetPointerShape(uint32_t fFlags, uint32_t xHot, uint32_t yHot, uint32_t cx, uint32_t cy, const void *pvImg, size_t cbReq) 75 73 { 76 74 VMMDevReqMousePointer *pReq; 77 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, sizeof(VMMDevReqMousePointer) + cbImg, VMMDevReq_SetPointerShape);75 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, cbReq, VMMDevReq_SetPointerShape); 78 76 if (RT_SUCCESS(rc)) 79 77 { … … 84 82 pReq->height = cy; 85 83 if (pvImg) 86 memcpy(pReq->pointerData, pvImg, sizeof(pReq->pointerData) + cbImg);84 memcpy(pReq->pointerData, pvImg, cbReq - sizeof(VMMDevReqMousePointer) + sizeof(pReq->pointerData)); 87 85 88 86 rc = vbglR3GRPerform(&pReq->header);
Note:
See TracChangeset
for help on using the changeset viewer.