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)