"Dmitry Timoshkov" dmitry@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.