Changeset 32631 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
- Timestamp:
- Sep 20, 2010 9:55:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp
r31409 r32631 99 99 { 100 100 VMMDevReqMousePointer *pReq; 101 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, RT_OFFSETOF(VMMDevReqMousePointer, pointerData) + cbImg, VMMDevReq_SetPointerShape); 101 size_t cbReq = vmmdevGetMousePointerReqSize(cx, cy); 102 AssertReturn( !pvImg 103 || cbReq == RT_OFFSETOF(VMMDevReqMousePointer, pointerData) + cbImg, 104 VERR_INVALID_PARAMETER); 105 int rc = vbglR3GRAlloc((VMMDevRequestHeader **)&pReq, cbReq, 106 VMMDevReq_SetPointerShape); 102 107 if (RT_SUCCESS(rc)) 103 108 { … … 111 116 112 117 rc = vbglR3GRPerform(&pReq->header); 113 vbglR3GRFree(&pReq->header);114 118 if (RT_SUCCESS(rc)) 115 119 rc = pReq->header.rc; 120 vbglR3GRFree(&pReq->header); 116 121 } 117 122 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.