* generic AnsiStrComp fixed

git-svn-id: trunk@1057 -
This commit is contained in:
florian 2005-09-06 21:07:16 +00:00
parent 46097d7679
commit af3b2f28ca

View File

@ -298,7 +298,12 @@ begin
Result:=Ord(S1[0])-Ord(S2[0]); //!! Must be replaced by ansi characters !! Result:=Ord(S1[0])-Ord(S2[0]); //!! Must be replaced by ansi characters !!
Inc(S1); Inc(S1);
Inc(S2); Inc(S2);
Until (Result<>0) or ((S1[0]=#0) or (S2[0]=#0)) Until (Result<>0) or (S1^=#0) or (S2^=#0);
if Result=0 then
if s1=#0 then
result:=1
else
result:=-1;
end; end;