Fix a possible crash on 64 bit systems when the lumSrcPtr or chrSrcPtr