Use full mask; fixes label search on FAT drives.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3944
This commit is contained in:
parent
c4177a33c6
commit
1eecef3f33
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ public:
|
|||
for (int d = 0;d < DOS_DRIVES;d++) {
|
||||
if (!Drives[d]) continue;
|
||||
|
||||
char root[4] = {'A'+d,':','\\',0};
|
||||
char root[7] = {'A'+d,':','\\','*','.','*',0};
|
||||
bool ret = DOS_FindFirst(root,DOS_ATTR_VOLUME);
|
||||
if (ret) {
|
||||
dta.GetResult(name,size,date,time,attr);
|
||||
|
@ -1296,7 +1296,7 @@ public:
|
|||
for(ct = 0; ct < imgDisks.size(); ct++) {
|
||||
DriveManager::CycleAllDisks();
|
||||
|
||||
char root[4] = {drive, ':', '\\', 0};
|
||||
char root[7] = {drive,':','\\','*','.','*',0};
|
||||
DOS_FindFirst(root, DOS_ATTR_VOLUME); // force obtaining the label and saving it in dirCache
|
||||
}
|
||||
dos.dta(save_dta);
|
||||
|
|
Loading…
Add table
Reference in a new issue