c
if (nXDst > UINT32_MAX / dstBytesPerPixel || nYDst > UINT32_MAX / nDstStep) {
    // Handle error: potential overflow detected
    return FALSE;
}
const BYTE* pDstStart = &pDstData[nXDst * dstBytesPerPixel + nYDst * nDstStep];
