MG: fixed typo in win32 code

git-svn-id: trunk@563 -
This commit is contained in:
lazarus 2002-01-01 15:52:39 +00:00
parent 7a28cf749f
commit 0ada200b98
2 changed files with 2 additions and 2 deletions
components/codetools
ide

View File

@ -179,7 +179,7 @@ end;
function FileIsWritable(const AFilename: string): boolean;
begin
{$IFDEF win32}
Result:=((FileGetAttr(Filename) and faReadOnly)>0);
Result:=((FileGetAttr(AFilename) and faReadOnly)>0);
{$ELSE}
Result:={$IFDEF Ver1_0}Linux{$ELSE}Unix{$ENDIF}.Access(
AFilename,{$IFDEF Ver1_0}Linux{$ELSE}Unix{$ENDIF}.W_OK);

View File

@ -221,7 +221,7 @@ end;
function FileIsWritable(const AFilename: string): boolean;
begin
{$IFDEF win32}
Result:=((FileGetAttr(Filename) and faReadOnly)>0);
Result:=((FileGetAttr(AFilename) and faReadOnly)>0);
{$ELSE}
Result:={$IFDEF Ver1_0}Linux{$ELSE}Unix{$ENDIF}.Access(
AFilename,{$IFDEF Ver1_0}Linux{$ELSE}Unix{$ENDIF}.W_OK);