6 Nov
2025
6 Nov
'25
8:25 a.m.
eric pouech (@epo) commented about programs/xcopy/xcopy.c:
} }
+ /* Don't copy a file over itself. */
perhaps a simple approach would be to detect if same file in the case of CopyFileW fails this would: * avoid adding extra variables that complexify the whole code flow, and add states that should be handled in various places... * avoid checking for the same file in successful copies (and spend unneeded time in it) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9112#note_120994