FpDebug: Fix RangeCheck, TByteArray has an upper limit of 32k.

(cherry picked from commit 27f4c50dbd)
This commit is contained in:
Martin 2022-02-27 18:56:41 +01:00
parent 9e36e91b7d
commit ffc50c888c

View File

@ -2415,7 +2415,7 @@ var
begin
for Brk in FBreakMap do begin
if (Brk.Location >= AAdress) and (Brk.Location < (AAdress+ASize)) then
TByteArray(AData)[Brk.Location-AAdress] := Brk.OrigValue;
PByte(@AData)[Brk.Location-AAdress] := Brk.OrigValue;
end;
end;