Fixed SRCCOPY, using memmove now.

memcpy is not defined, if source and destination overlap.
This commit is contained in:
Armin Novak 2016-01-18 09:18:42 +01:00
parent e2dbe5ee2d
commit 123cd523e0
2 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ static BOOL BitBlt_SRCCOPY_16bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nW
dstp = gdi_get_bitmap_pointer(hdcDest, nXDest, nYDest + y);
if (srcp != 0 && dstp != 0)
memcpy(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
memmove(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
}
return TRUE;

View File

@ -105,7 +105,7 @@ static BOOL BitBlt_SRCCOPY_8bpp(HGDI_DC hdcDest, int nXDest, int nYDest, int nWi
dstp = gdi_get_bitmap_pointer(hdcDest, nXDest, nYDest + y);
if (srcp != 0 && dstp != 0)
memcpy(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
memmove(dstp, srcp, nWidth * hdcDest->bytesPerPixel);
}
return TRUE;