1
0
Fork 0

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:
ripsaw8080 2015-10-03 08:59:45 +00:00
parent c4177a33c6
commit 1eecef3f33

View file

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