fixed small bug (files were not shown using dir command)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@394
This commit is contained in:
parent
973be7b16f
commit
5df512bcc0
2 changed files with 2 additions and 2 deletions
|
@ -244,7 +244,7 @@ void DOS_DTA::GetSearchParams(Bit8u & attr,char * pattern) {
|
|||
memcpy(pattern,temp,8);
|
||||
pattern[8]='.';
|
||||
memcpy(&pattern[9],&temp[8],3);
|
||||
pattern[12]=0;
|
||||
// pattern[12]=0;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ bool localDrive::FindFirst(char * _dir,DOS_DTA & dta) {
|
|||
CROSS_FILENAME(srch_dir);
|
||||
|
||||
char end[2]={CROSS_FILESPLIT,0};
|
||||
if (srch_dir[strlen(srch_dir)]!=CROSS_FILESPLIT) strcat(srch_dir,end);
|
||||
if (srch_dir[strlen(srch_dir)-1]!=CROSS_FILESPLIT) strcat(srch_dir,end);
|
||||
if((srch_opendir=opendir(srch_dir))==NULL) return false;
|
||||
return FindNext(dta);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue