* fixed CompareChar0, resolves #10151

git-svn-id: trunk@9219 -
This commit is contained in:
florian 2007-11-12 20:01:57 +00:00
parent 0801c64813
commit c64ab62bdf

View File

@ -643,13 +643,12 @@ begin
while psrc<pend do
begin
b:=(ptrint(psrc^)-ptrint(pdest^));
if (b<>0) or (psrc^=0) or (pdest^=0) then
begin
if b<0 then
exit(-1)
else
else if b>0 then
exit(1);
end;
if (psrc^=0) or (pdest^=0) then
exit(0);
inc(pdest);
inc(psrc);
end;