Changeset 106224 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Oct 7, 2024 10:07:57 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 165012
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp
r106221 r106224 8364 8364 if (pbDst - pbSrc < cbSrcPitch * cHeight) 8365 8365 { 8366 LogRelMax( 4, ("Src buffer 0x%p overlaps Dst buffer 0x%p\n", pbSrc, pbDst));8367 return VERR_INVALID_PARAMETER;8366 LogRelMax(8, ("Src buffer 0x%p overlaps Dst buffer 0x%p, cbSrcPitch %d, cbDstPitch %d, cbWidth %u, cHeight %u\n", 8367 pbSrc, pbDst, cbSrcPitch, cbDstPitch, cbWidth, cHeight)); 8368 8368 } 8369 8369 } … … 8372 8372 if (pbSrc - pbDst < cbDstPitch * cHeight) 8373 8373 { 8374 LogRelMax( 4, ("Dst buffer 0x%p overlaps Src buffer 0x%p\n", pbDst, pbSrc));8375 return VERR_INVALID_PARAMETER;8374 LogRelMax(8, ("Dst buffer 0x%p overlaps Src buffer 0x%p, cbSrcPitch %d, cbDstPitch %d, cbWidth %u, cHeight %u\n", 8375 pbDst, pbSrc, cbSrcPitch, cbDstPitch, cbWidth, cHeight)); 8376 8376 } 8377 8377 } 8378 8378 else 8379 8379 { 8380 LogRelMax( 4, ("Dst and Src buffers are both start at 0x%p\n", pbDst));8381 return VERR_INVALID_PARAMETER;8380 LogRelMax(8, ("Src and Dst buffers are both start at 0x%p, cbSrcPitch %d, cbDstPitch %d, cbWidth %u, cHeight %u\n", 8381 pbSrc, cbSrcPitch, cbDstPitch, cbWidth, cHeight)); 8382 8382 } 8383 8383 … … 8386 8386 { 8387 8387 /* Entire scanlines, positive pitch. */ 8388 mem cpy(pbDst, pbSrc, cbWidth * cHeight);8388 memmove(pbDst, pbSrc, cbWidth * cHeight); 8389 8389 } 8390 8390 else … … 8392 8392 for (uint32_t i = 0; i < cHeight; ++i) 8393 8393 { 8394 mem cpy(pbDst, pbSrc, cbWidth);8394 memmove(pbDst, pbSrc, cbWidth); 8395 8395 8396 8396 pbDst += cbDstPitch;
Note:
See TracChangeset
for help on using the changeset viewer.