mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-26 20:43:46 +02:00
MG: fixed typo in win32 code
git-svn-id: trunk@563 -
This commit is contained in:
parent
7a28cf749f
commit
0ada200b98
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user