Christian Costa <titan.co...@wanadoo.fr> writes: > @@ -627,6 +627,14 @@ static DWORD SHNotifyCopyFileW(LPCWSTR src, LPCWSTR > dest, BOOL bFailIfExists) > > TRACE("(%s %s %s)\n", debugstr_w(src), debugstr_w(dest), bFailIfExists > ? "failIfExists" : ""); > > + if (PathFileExistsW(dest)) > + { > + /* Destination file may already exist with read only attribute */ > + DWORD attribs = GetFileAttributesW(dest); > + if (IsAttrib(attribs, FILE_ATTRIBUTE_READONLY)) > + SetFileAttributesW(dest, attribs &= ~ FILE_ATTRIBUTE_READONLY); > + } > +
The PathFileExistsW call is redundant. -- Alexandre Julliard julli...@winehq.org