Skip to content

Commit aa655d4

Browse files
committed
Recording: no need for a local variable
svn:sync-xref-src-repo-rev: r173850
1 parent 91f05ea commit aa655d4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/VBox/Main/src-client/RecordingStream.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: RecordingStream.cpp 113876 2026-04-15 09:30:47Z andreas.loeffler@oracle.com $ */
1+
/* $Id: RecordingStream.cpp 114045 2026-04-29 10:10:51Z vitali.pelenjow@oracle.com $ */
22
/** @file
33
* Recording stream code.
44
*/
@@ -1119,11 +1119,10 @@ int RecordingStream::SendCursorShape(uint8_t idCursor, PRECORDINGVIDEOFRAME pSha
11191119
pFrame->msTimestamp = msTimestamp;
11201120
pFrame->idStream = this->m_uScreenID;
11211121

1122-
void *pvBuf = (PRTUINTPTR)pFrame + RT_OFFSETOF(RECORDINGFRAME, abData);
11231122
Assert(pShape->cbBuf <= pPool->cbFrame - sizeof(RECORDINGFRAME));
11241123

11251124
pFrame->u.Video = *pShape;
1126-
pFrame->u.Video.pau8Buf = (uint8_t *)pvBuf;
1125+
pFrame->u.Video.pau8Buf = &pFrame->abData[0];
11271126
memcpy(pFrame->u.Video.pau8Buf, pShape->pau8Buf, pShape->cbBuf); /* Make a deep copy of the pixel data. */
11281127
pFrame->u.Video.cbBuf = pShape->cbBuf;
11291128

0 commit comments

Comments
 (0)