1
0
Fork 0

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:
Ulf Wohlers 2002-10-22 11:12:07 +00:00
parent 973be7b16f
commit 5df512bcc0
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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);
}