[ros-diffs] [hpoussin] 33467: "\\.\" always exists Fixes "copy freeldr.ini con:" command

hpoussin at svn.reactos.org hpoussin at svn.reactos.org
Mon May 12 11:40:08 CEST 2008


Author: hpoussin
Date: Mon May 12 04:40:08 2008
New Revision: 33467

URL: http://svn.reactos.org/svn/reactos?rev=33467&view=rev
Log:
"\\.\" always exists
Fixes "copy freeldr.ini con:" command

Modified:
    trunk/reactos/base/shell/cmd/copy.c

Modified: trunk/reactos/base/shell/cmd/copy.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/shell/cmd/copy.c?rev=33467&r1=33466&r2=33467&view=diff
==============================================================================
--- trunk/reactos/base/shell/cmd/copy.c [iso-8859-1] (original)
+++ trunk/reactos/base/shell/cmd/copy.c [iso-8859-1] Mon May 12 04:40:08 2008
@@ -743,7 +743,7 @@
             _tcscpy(tmpDestPath,szDestPath);
 
             /* Can't put a file into a folder that isnt there */
-            if(!IsExistingDirectory(szDestPath))
+            if(_tcscmp (szDestPath, _T("\\\\.\\")) && !IsExistingDirectory(szDestPath))
             {
                 ConOutFormatMessage (GetLastError (), szSrcPath);
                 freep (arg);



More information about the Ros-diffs mailing list