Use pdword to avoid range check erro in tentryfile.getdword method

git-svn-id: trunk@40103 -
This commit is contained in:
pierre 2018-10-31 09:59:45 +00:00
parent 89ee644919
commit 7a07f848e8

View File

@ -668,7 +668,7 @@ begin
end;
if bufsize-bufidx>=sizeof(dword) then
begin
result:=Unaligned(plongint(@buf[bufidx])^);
result:=Unaligned(pdword(@buf[bufidx])^);
inc(bufidx,sizeof(longint));
end
else