OSDN Git Service

IntegerをCardinalに変更
authorh677 <h677>
Thu, 21 Feb 2008 16:20:47 +0000 (16:20 +0000)
committerh677 <h677>
Thu, 21 Feb 2008 16:20:47 +0000 (16:20 +0000)
GikoSystem.pas

index a9b5d1e..f1afb9f 100644 (file)
@@ -1186,10 +1186,10 @@ end;
 }
 function TGikoSys.DirectoryExistsEx(const Name: string): Boolean;
 var
-       Code: Integer;
+       Code: Cardinal;
 begin
        Code := GetFileAttributes(PChar(Name));
-       Result := (Code <> -1) and (FILE_ATTRIBUTE_DIRECTORY and Code <> 0);
+       Result := (Code <> Cardinal(-1)) and (FILE_ATTRIBUTE_DIRECTORY and Code <> 0);
 end;
 
 {!