https://bugs.winehq.org/show_bug.cgi?id=34174
--- Comment #2 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Anastasius Focht from comment #1)
Make sure you don't fall into the common sharing fallacy. The sharing flags don't control what the calling process can do - they control what another process can do with the file ;-)
Not really related to the investigation, but there are the tests that show that access/sharing does affect the owner process just like any other: http://source.winehq.org/git/wine.git/blob/HEAD:/dlls/kernel32/tests/file.c#...