superobject icon indicating copy to clipboard operation
superobject copied to clipboard

Filelocking bugfix

Open csm101 opened this issue 8 years ago • 1 comments

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.

csm101 avatar Oct 21 '16 20:10 csm101

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..

csm101 avatar Oct 21 '16 20:10 csm101