codetools: fixed ComparePrefixIdent

git-svn-id: trunk@18114 -
This commit is contained in:
mattias 2009-01-04 19:37:34 +00:00
parent e39740f444
commit 8d632ac72b

View File

@ -2948,7 +2948,8 @@ function ComparePrefixIdent(PrefixIdent, Identifier: PChar): boolean;
begin
if PrefixIdent<>nil then begin
if Identifier<>nil then begin
while UpChars[PrefixIdent^]=UpChars[Identifier^] do begin
while (UpChars[PrefixIdent^]=UpChars[Identifier^]) and (PrefixIdent^>#0) do
begin
inc(PrefixIdent);
inc(Identifier);
end;