22 Oct
2007
22 Oct
'07
9:38 a.m.
"Dmitry Timoshkov" <dmitry(a)codeweavers.com> writes:
I can't believe this, probably you misunderstood or misinterpreted something. ReplaceFile API needs to abide sharing and access rights rules which are known only to wineserver, and not known/available on the libc/kernel level.
Of course you need to call CreateFile to check sharing etc., but after that the replacing should be done with link() and/or rename(), not by copying the files. Essentially it should be done just like MoveFile. -- Alexandre Julliard julliard(a)winehq.org