Typecasting to int64 type fixes the exception.

This commit is contained in:
Yuri 2022-01-06 01:12:50 +03:00
parent 749c8110b6
commit aa82a2e446

View File

@ -995,9 +995,8 @@ begin
TWSFramePayload.CopyMasked(Payload.Data,Buffer,Payload.MaskKey,aOffset);
end
else
if Payload.DataLength > 0 then
for I:=0 to Payload.DataLength-1 do
buffer[aOffset + I]:=Payload.Data[I];
for I:=0 to int64(Payload.DataLength)-1 do
buffer[aOffset + I]:=Payload.Data[I];
Result := Buffer;
end;