@@ -174,7 +174,7 @@ static int DelTree(const char* path)
174174/* function "xcopy_file" for every found file. */
175175/* Note: can use up to 40 bytes stack per call with Borland C */
176176/*-------------------------------------------------------------------------*/
177- static int CopyTree (int depth , char * src_pathname ,
177+ static int CopyTree (char * src_pathname ,
178178 const char * src_filename ,
179179 char * dest_pathname ,
180180 const char * dest_filename )
@@ -214,7 +214,7 @@ static int CopyTree(int depth, char *src_pathname,
214214 strmcat (old_new_dest_pathname , fileblock -> ff_name , MAXPATH );
215215 strmcat (old_new_dest_pathname , DIR_SEPARATOR , MAXPATH );
216216
217- if (!CopyTree (depth + 1 , src_pathname , "*.*" ,
217+ if (!CopyTree (src_pathname , "*.*" ,
218218 dest_pathname , "*.*" )) return 0 ;
219219 * old_new_src_pathname = '\0' ;
220220 * old_new_dest_pathname = '\0' ;
@@ -341,7 +341,7 @@ int MoveDirectory(const char* src_filename, const char* dest_filename)
341341 if (!DelTree (dest_filename ))
342342 return 0 ;
343343
344- if (!CopyTree (0 , src_path , src_file , dest_path , dest_file ))
344+ if (!CopyTree (src_path , src_file , dest_path , dest_file ))
345345 {
346346 DelTree (dest_filename );
347347 return 0 ;
0 commit comments