cmd: copy: Fix "Path not found" error.
This commit is contained in:
parent
e219087c65
commit
f918d175af
|
@ -171,7 +171,7 @@ void WCMD_copy (void) {
|
||||||
if (outpath[strlenW(outpath) - 1] == '\\')
|
if (outpath[strlenW(outpath) - 1] == '\\')
|
||||||
outpath[strlenW(outpath) - 1] = '\0';
|
outpath[strlenW(outpath) - 1] = '\0';
|
||||||
attribs = GetFileAttributes(outpath);
|
attribs = GetFileAttributes(outpath);
|
||||||
if (attribs & FILE_ATTRIBUTE_DIRECTORY) {
|
if (attribs != INVALID_FILE_ATTRIBUTES && (attribs & FILE_ATTRIBUTE_DIRECTORY)) {
|
||||||
strcatW (outpath, slashW);
|
strcatW (outpath, slashW);
|
||||||
copyToDir = TRUE;
|
copyToDir = TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue