[lazarus] FileIsWritable (win32)

Vincent Snijders vslist at zonnet.nl
Fri Sep 12 02:55:57 EDT 2003


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.

More information about the Lazarus mailing list