mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:13:01 +00:00
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=5427
This commit is contained in:
parent
0275f1127b
commit
5c18315741
1 changed files with 2 additions and 1 deletions
|
@ -22,7 +22,8 @@ void _splitpath(const char* path, char* drive, char* dir, char* fname, char* ext
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp_dir = (char*)strrchr(path,'\\');
|
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);
|
strncpy(dir,tmp_drive+1,tmp_dir - tmp_drive);
|
||||||
*(dir + (tmp_dir - tmp_drive)) = 0;
|
*(dir + (tmp_dir - tmp_drive)) = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue