cmd: copy: Fix "Path not found" error.

This commit is contained in:
Dmitry Potapov 2007-10-13 04:07:57 +04:00 committed by Alexandre Julliard
parent e219087c65
commit f918d175af
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ void WCMD_copy (void) {
if (outpath[strlenW(outpath) - 1] == '\\')
outpath[strlenW(outpath) - 1] = '\0';
attribs = GetFileAttributes(outpath);
if (attribs & FILE_ATTRIBUTE_DIRECTORY) {
if (attribs != INVALID_FILE_ATTRIBUTES && (attribs & FILE_ATTRIBUTE_DIRECTORY)) {
strcatW (outpath, slashW);
copyToDir = TRUE;
}