1
0
Fork 0

Allocation Info works for CD-ROM drives. Fixes Bureau 13 installer.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4172
This commit is contained in:
ripsaw8080 2018-11-16 22:39:24 +00:00
parent 1960a815e1
commit d0ecdf85b2

View file

@ -1281,7 +1281,7 @@ bool DOS_FileExists(char const * const name) {
bool DOS_GetAllocationInfo(Bit8u drive,Bit16u * _bytes_sector,Bit8u * _sectors_cluster,Bit16u * _total_clusters) {
if (!drive) drive = DOS_GetDefaultDrive();
else drive--;
if (drive >= DOS_DRIVES || !Drives[drive] || Drives[drive]->isRemovable()) {
if (drive >= DOS_DRIVES || !Drives[drive]) {
DOS_SetError(DOSERR_INVALID_DRIVE);
return false;
}