Commit f918d175 authored by Dmitry Potapov's avatar Dmitry Potapov Committed by Alexandre Julliard

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

parent e219087c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment