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