mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 23:09:38 +00:00
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] == '\\')
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue