The following call:
HANDLE file = CreateFile(filePath, FILE_APPEND_DATA, FILE_SHARE_READ, NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_WRITE_THROUGH, NULL);
succeeds, but all subsequent calls to WriteFile(...) fail with GetLastError() == ERROR_ACCESS_DENIED.
I tried different flag combinations,
and this is FILE_APPEND_DATA who causes the trouble.
With FILE_WRITE_DATA instead of it, all works OK.
I use wine 1.4.1, under Linux Mint 13 installed on VirtualBox.
The same behaviour was observed in wine 1.2 under an older Linux Mint version.
Under all tried versions of native Windows it works OK.
In the board I found that this year smb. proposed to cover FILE_APPEND_DATA with a test,
which tells me it wasn't cover before.
Please, tell anybody, was this mode ever supported?
Thanks in advance.
FILE_APPEND_DATA doesn't work in CreateFile()
-
- Level 7
- Posts: 823
- Joined: Thu Aug 27, 2009 6:23 am
Re: FILE_APPEND_DATA doesn't work in CreateFile()
Try latest wine. If it doesn't work, file a bug, create a small test case and attach it to the bug report.