Zhiyi Zhang zzhang@codeweavers.com wrote:
And then we also need to check if the replaced file has readonly attributes now that GENERIC_WRITE is gone. It seems fine to add a check in kernel32, otherwise we need add an extra server call to rename files and checking the attribute in wineserver.
I'd guess that NtOpenFile(DELETE) should fail for read-only files making this check on client side redundant.