* ReadAllBytes was not reading all bytes. Fixes issue #40789

This commit is contained in:
Michaël Van Canneyt 2024-05-18 13:57:18 +02:00
parent e29d1ecda9
commit 9eb77599e1

View File

@ -1991,7 +1991,7 @@ begin
With OpenRead(aPath) do With OpenRead(aPath) do
try try
SetLength(Result,Size); SetLength(Result,Size);
ReadBuffer(Result,0); ReadBuffer(Result,Size);
finally finally
Free; Free;
end; end;