Browse Source

Patch from Ludo Brands to fix issue #20106

git-svn-id: trunk@18921 -
michael 14 years ago
parent
commit
d443fafc3c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/fcl-base/src/win/fileinfo.pp

+ 1 - 1
packages/fcl-base/src/win/fileinfo.pp

@@ -226,7 +226,7 @@ begin
   s:=LowerCase(inp);
   s:=LowerCase(inp);
   I:=0;
   I:=0;
   Result:='';
   Result:='';
-  While (Result='') and (i<FmyVersionCategories.Count -1) do
+  While (Result='') and (i<FmyVersionCategories.Count) do
     begin
     begin
     V:=FmyVersionCategories[i];
     V:=FmyVersionCategories[i];
     if (V=S) and ((transid=0) or (transid=dword(pointer(FmyVersionCategories.Objects[i])))) then
     if (V=S) and ((transid=0) or (transid=dword(pointer(FmyVersionCategories.Objects[i])))) then