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:
parent
1960a815e1
commit
d0ecdf85b2
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue