mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
Fixed error if payload = 0
This commit is contained in:
parent
045472a5e7
commit
749c8110b6
@ -995,8 +995,9 @@ begin
|
||||
TWSFramePayload.CopyMasked(Payload.Data,Buffer,Payload.MaskKey,aOffset);
|
||||
end
|
||||
else
|
||||
for I:=0 to Payload.DataLength-1 do
|
||||
buffer[aOffset + I]:=Payload.Data[I];
|
||||
if Payload.DataLength > 0 then
|
||||
for I:=0 to Payload.DataLength-1 do
|
||||
buffer[aOffset + I]:=Payload.Data[I];
|
||||
|
||||
Result := Buffer;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user