Fixes for cmd copy command.

svn path=/trunk/; revision=1657
This commit is contained in:
Carl Nettelblad 2001-03-02 15:45:31 +00:00
parent 5149f0d29a
commit d3e61a64dd
2 changed files with 8 additions and 6 deletions

View file

@ -5,16 +5,18 @@ void _makepath( char *path, const char *drive, const char *dir, const char *fnam
{
int dir_len;
if ( drive != NULL ) {
strcat(path,drive);
strcpy(path,drive);
strcat(path,":");
}
else
(*path)=0;
if ( dir != NULL ) {
strcat(path,dir);
if ( *dir != '\\' )
strcat(path,"\\");
dir_len = strlen(dir);
if ( *(dir + dir_len - 1) != '\\' )
if ( dir_len && *(dir + dir_len - 1) != '\\' )
strcat(path,"\\");
}
if ( fname != NULL ) {

View file

@ -1,4 +1,4 @@
/* $Id: file.c,v 1.24 2000/10/01 19:54:57 ekohl Exp $
/* $Id: file.c,v 1.25 2001/03/02 15:45:31 cnettel Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -691,9 +691,9 @@ WINBOOL STDCALL GetFileTime(HANDLE hFile,
return FALSE;
}
memcpy(lpCreationTime,&FileBasic.CreationTime,sizeof(FILETIME));
memcpy(lpLastAccessTime,&FileBasic.LastAccessTime,sizeof(FILETIME));
memcpy(lpLastWriteTime,&FileBasic.LastWriteTime,sizeof(FILETIME));
if (lpCreationTime) memcpy(lpCreationTime,&FileBasic.CreationTime,sizeof(FILETIME));
if (lpLastAccessTime) memcpy(lpLastAccessTime,&FileBasic.LastAccessTime,sizeof(FILETIME));
if (lpLastWriteTime) memcpy(lpLastWriteTime,&FileBasic.LastWriteTime,sizeof(FILETIME));
return TRUE;
}