[lazarus] FileIsWritable (win32)

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Sep 12 03:16:26 EDT 2003

On Fri, 12 Sep 2003 08:57:24 +0200
Vincent Snijders <vslist at zonnet.nl> wrote:

> Hi,
> I noticed sometimes the editor works and sometimes it doesn't in win32.
> It turned out that FileIsWritable has a bug.
> A file is writable if it hasn't set the readonly flag.
> Line 434 of filectrl.inc should be:
>   Result:=((FileGetAttr(AFilename) and faReadOnly)=0);
> Check the equal sign at the end.

Thanks for the hint.


More information about the Lazarus mailing list