Browse Source

* typecast that fixes range error, part of mantis #16172

git-svn-id: trunk@19040 -
marco 14 years ago
parent
commit
d6962106b9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/win/sysutils.pp

+ 1 - 1
rtl/win/sysutils.pp

@@ -446,7 +446,7 @@ end;
 
 
 Function FileGetAttr (Const FileName : String) : Longint;
 Function FileGetAttr (Const FileName : String) : Longint;
 begin
 begin
-  Result:=GetFileAttributes(PChar(FileName));
+  Result:=Longint(GetFileAttributes(PChar(FileName)));
 end;
 end;