Changeset 94295 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
- Timestamp:
- Mar 17, 2022 2:20:24 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPWddm.cpp
r93749 r94295 3153 3153 * Inform the host about the visible region 3154 3154 */ 3155 VMMDevVideoSetVisibleRegion * req = NULL;3156 3157 rc = VbglR0GRAlloc ((VMMDevRequestHeader **)& req,3155 VMMDevVideoSetVisibleRegion *pReq = NULL; 3156 3157 rc = VbglR0GRAlloc ((VMMDevRequestHeader **)&pReq, 3158 3158 sizeof (VMMDevVideoSetVisibleRegion) + (cRects-1)*sizeof(RTRECT), 3159 3159 VMMDevReq_VideoSetVisibleRegion); … … 3161 3161 if (RT_SUCCESS(rc)) 3162 3162 { 3163 req->cRect = cRects;3164 memcpy(& req->Rect, pRect, cRects*sizeof(RTRECT));3165 3166 rc = VbglR0GRPerform (& req->header);3163 pReq->cRect = cRects; 3164 memcpy(&pReq->Rect, pRect, cRects*sizeof(RTRECT)); 3165 3166 rc = VbglR0GRPerform (&pReq->header); 3167 3167 AssertRC(rc); 3168 3168 if (RT_SUCCESS(rc)) … … 3173 3173 Status = STATUS_UNSUCCESSFUL; 3174 3174 } 3175 VbglR0GRFree(&pReq->header); 3175 3176 } 3176 3177 else
Note:
See TracChangeset
for help on using the changeset viewer.