c
#include <stdint.h>

uint64_t offset = (uint64_t)nXDst * dstBytesPerPixel + (uint64_t)nYDst * nDstStep;
if (offset > UINT32_MAX) {
    // Handle overflow error
    return FALSE;
}
const BYTE* pDstStart = &pDstData[(uint32_t)offset];
