7 Nov
2025
7 Nov
'25
3:32 p.m.
On Fri Nov 7 08:03:40 2025 +0000, eric pouech wrote:
if mean something like: ``` if (!CopyFileW()) { if (GetLastError() == ERROR_SHARING_VIOLATION && IsSameFile()) {...} else {...} } ``` The problem with moving IsSameFile() from where it is now to inside the error case for CopyFileW() is that native Windows does not prompt for overwrite if the file is the same. Therefore, IsSameFile() must be done before the prompting code, where it is now.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9112#note_121174