* Fixed reading of name=length pairs with lenfth>128

git-svn-id: trunk@15881 -
This commit is contained in:
michael 2010-08-23 12:55:26 +00:00
parent 3a07adf27e
commit b4a13f2b33

View File

@ -207,9 +207,9 @@ var
Result:=ARecord^.ContentData[i]
else
begin
Result:=BEtoN(PWord(@(ARecord^.ContentData[i]))^);
// ((ARecord^.ContentData[i] and $7f) shl 24) + (ARecord^.ContentData[i+1] shl 16)
// + (ARecord^.ContentData[i+2] shl 8) + (ARecord^.ContentData[i+3]);
// Result:=BEtoN(PLongint(@(ARecord^.ContentData[i]))^);
Result:=((ARecord^.ContentData[i] and $7f) shl 24) + (ARecord^.ContentData[i+1] shl 16)
+ (ARecord^.ContentData[i+2] shl 8) + (ARecord^.ContentData[i+3]);
inc(i,3);
end;
inc(i);
@ -555,6 +555,7 @@ begin
end;
Finally
FreeMem(AFCGI_Record);
AFCGI_Record:=Nil;
end;
until (1<>1);
end;