superobject
superobject copied to clipboard
Filelocking bugfix
File sharing policy must be passed in the SECOND parameter of TFileStream.Create, OR-ed with the open mode flags.
the "Rights" parameter (the third) is meant for the "rwxrwxrwx" protection bits used by unix filesystems and is ignored under Windows (see note at the end of documentation page)
A secondary minor correction (not actually a bug): FreeAndNil(x) already checks for "if x=nil": there is no need to checking it before calling.
opps... I noticed right now that this pull request contains also the changes I made for my other pull request... Sorry I am not very experienced with git, I am still trying to figure out some things..