From e5793b92ec13c1e261f90dfc7b98a8bf997f8a03 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 6 Aug 2003 11:33:03 +0000 Subject: [PATCH] Found problem when copy file to C:\TEST, output result was C:TEST, which placed it in current directory. CMD copy is still buggy. svn path=/trunk/; revision=5430 --- reactos/lib/ntdll/stdlib/splitp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/lib/ntdll/stdlib/splitp.c b/reactos/lib/ntdll/stdlib/splitp.c index b8a09c74c2e..5360d0697f0 100644 --- a/reactos/lib/ntdll/stdlib/splitp.c +++ b/reactos/lib/ntdll/stdlib/splitp.c @@ -21,7 +21,9 @@ void _splitpath( const char *path, char *drive, char *dir, char *fname, char *ex } tmp_dir = (char *)strrchr(path,'\\'); - if( tmp_dir != NULL && tmp_dir != tmp_drive + 1 ) { +// if( tmp_dir != NULL && tmp_dir != tmp_drive + 1 ) + if( tmp_dir != NULL ) + { strncpy(dir,tmp_drive+1,tmp_dir - tmp_drive); *(dir + (tmp_dir - tmp_drive)) = 0; }