black gold installer (ripsaw)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3784
This commit is contained in:
parent
30577ca990
commit
b216a9835e
1 changed files with 4 additions and 1 deletions
|
@ -1229,7 +1229,10 @@ 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]) return false;
|
||||
if (drive >= DOS_DRIVES || !Drives[drive]) {
|
||||
DOS_SetError(DOSERR_INVALID_DRIVE);
|
||||
return false;
|
||||
}
|
||||
Bit16u _free_clusters;
|
||||
Drives[drive]->AllocationInfo(_bytes_sector,_sectors_cluster,_total_clusters,&_free_clusters);
|
||||
SegSet16(ds,RealSeg(dos.tables.mediaid));
|
||||
|
|
Loading…
Add table
Reference in a new issue