LCL: don't use integer to compare FilerSignature, but array[1..4] of char, fixes maybe some little-endian, bigendian problem.

git-svn-id: trunk@11758 -
This commit is contained in:
vincents 2007-08-07 20:59:36 +00:00
parent c6dcda57b3
commit 8aeeda739e

View File

@ -3441,11 +3441,11 @@ end;
procedure TLRSObjectReader.BeginRootComponent;
var
Signature: LongInt;
Signature: Array[1..4] of Char;
begin
{ Read filer signature }
Read(Signature,4);
if Signature <> LongInt(FilerSignature) then
if Signature <> FilerSignature then
raise EReadError.Create('Invalid Filer Signature');
end;