- Timestamp:
- Feb 1, 2007 2:50:40 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/xgraphics/vboxutils.c
r430 r510 263 263 } 264 264 /* Now copy the data into the buffer */ 265 if (off32 Data+ sizeof(cmdHdr) < VBVA_RING_BUFFER_SIZE)265 if (off32Free + sizeof(cmdHdr) < VBVA_RING_BUFFER_SIZE) 266 266 { 267 267 memcpy(&pMem->au8RingBuffer[off32Free], &cmdHdr, … … 276 276 CARD32 u32Second = sizeof(cmdHdr) - u32First; 277 277 memcpy(&pMem->au8RingBuffer[off32Free], &cmdHdr, u32First); 278 memcpy(&pMem->au8RingBuffer[0], (void *)pu8Second, u32Second); 278 if (u32Second) 279 memcpy(&pMem->au8RingBuffer[0], (void *)pu8Second, u32Second); 279 280 pMem->off32Free = u32Second; 280 281 }
Note:
See TracChangeset
for help on using the changeset viewer.