Return proper error code in copy file to self failure. This should fix the currently failing xcopy tests.
From: Joe Souza jsouza@yahoo.com
--- programs/xcopy/xcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c index 5b1f2f3264c..e4a17826a77 100644 --- a/programs/xcopy/xcopy.c +++ b/programs/xcopy/xcopy.c @@ -578,7 +578,7 @@ static int XCOPY_DoCopy(WCHAR *srcstem, WCHAR *srcspec, skipFile = TRUE; if (XCOPY_IsSameFile(copyFrom, copyTo)) { XCOPY_wprintf(XCOPY_LoadMessage(STRING_NOCOPYTOSELF)); - ret = RC_WRITEERROR; + ret = RC_INITERROR; } else { DWORD error = GetLastError(); XCOPY_wprintf(XCOPY_LoadMessage(STRING_COPYFAIL),