Dmitry Potapov : cmd: copy: Fix "Path not found" error.
Alexandre Julliard
julliard at winehq.org
Mon Oct 15 11:28:08 CDT 2007
Module: wine
Branch: master
Commit: f918d175af89a5d8688bb93f73492197031825bd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f918d175af89a5d8688bb93f73492197031825bd
Author: Dmitry Potapov <dpotapov at gmail.com>
Date: Sat Oct 13 04:07:57 2007 +0400
cmd: copy: Fix "Path not found" error.
---
programs/cmd/builtins.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c
index 496ec86..43f63f6 100644
--- a/programs/cmd/builtins.c
+++ b/programs/cmd/builtins.c
@@ -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;
}
More information about the wine-cvs
mailing list