Fixed bug in returning disc label
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1004
This commit is contained in:
parent
4dc60a22db
commit
91a11bffcf
1 changed files with 7 additions and 4 deletions
|
@ -120,10 +120,13 @@ bool localDrive::FindFirst(char * _dir,DOS_DTA & dta) {
|
|||
|
||||
Bit8u sAttr;
|
||||
dta.GetSearchParams(sAttr,tempDir);
|
||||
if (sAttr & DOS_ATTR_VOLUME) {
|
||||
// Get Volume Label
|
||||
dta.SetResult(dirCache.GetLabel(),0,0,0,DOS_ATTR_VOLUME);
|
||||
return true;
|
||||
if ((sAttr & DOS_ATTR_VOLUME) && (*_dir==0)) {
|
||||
// Get Volume Label (DOS_ATTR_VOLUME) and only in basedir
|
||||
if (WildFileCmp(dirCache.GetLabel(),tempDir)) {
|
||||
// Get Volume Label
|
||||
dta.SetResult(dirCache.GetLabel(),0,0,0,DOS_ATTR_VOLUME);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return FindNext(dta);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue