[PATCH 4/4] kernel32: Open replaced file without GENERIC_WRITE in ReplaceFileW().

Dmitry Timoshkov dmitry at baikal.ru
Tue Apr 9 08:41:36 CDT 2019


Zhiyi Zhang <zzhang at 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.

-- 
Dmitry.



More information about the wine-devel mailing list