https://bugs.winehq.org/show_bug.cgi?id=50771
Bug ID: 50771 Summary: CreateFile(FILE_WRITE_ATTRIBUTES) on readonly file fails Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: martin@martin.st Distribution: ---
Created attachment 69563 --> https://bugs.winehq.org/attachment.cgi?id=69563 Testcase
When a file is readonly, one should be able to open it with CreateFile(FILE_WRITE_ATTRIBUTES) in order to change its permissions to writable via SetFileInformationByHandle(FileBasicInfo), however the CreateFile call fails.