소스 검색

* remove also 255 limit for ExtractFileExt

git-svn-id: trunk@2033 -
peter 20 년 전
부모
커밋
9b0c8269bc
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      rtl/objpas/sysutils/fina.inc

+ 2 - 2
rtl/objpas/sysutils/fina.inc

@@ -74,7 +74,7 @@ var i: longint;
 begin
 I := Length(FileName);
 while (I > 0) and not (FileName[I] in ['/', '\', ':']) do Dec(I);
-Result := Copy(FileName, I + 1, maxint);
+Result := Copy(FileName, I + 1, MaxInt);
 end;
 
 function ExtractFileExt(const FileName: string): string;
@@ -83,7 +83,7 @@ begin
 I := Length(FileName);
 while (I > 0) and not (FileName[I] in ['.', '/', '\', ':']) do Dec(I);
 if (I > 0) and (FileName[I] = '.') then
-   Result := Copy(FileName, I, 255)
+   Result := Copy(FileName, I, MaxInt)
 else Result := '';
 end;