fixed a mistake
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@305
This commit is contained in:
parent
6009e11726
commit
2d1ccb9048
1 changed files with 2 additions and 1 deletions
|
@ -106,7 +106,8 @@ bool localDrive::FindFirst(char * search,DTA_FindBlock * dta) {
|
|||
strcpy(directory,name);
|
||||
/* make sure / is last sign */
|
||||
if (pdir) closedir(pdir);
|
||||
if(directory[(strlen(directory)-1)]!=CROSS_FILESPLIT) strcat(directory, CROSS_FILESPLIT);
|
||||
char argh=CROSS_FILESPLIT;
|
||||
if(directory[(strlen(directory)-1)]!=CROSS_FILESPLIT) strcat(directory, &argh);
|
||||
if((pdir=opendir(directory))==NULL) return false;
|
||||
return FindNext(dta);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue