Fix mismatched arg types in the win32 code (d1x r1.2)
[btb/d2x.git] / arch / dos / disk.c
1 #include <conf.h>
2 #include <dos.h>
3 #include <limits.h>
4 #include "pstypes.h"
5 #include "error.h"
6
7 unsigned long getdiskfree() {
8         struct diskfree_t dfree;
9         unsigned drive;
10
11         _dos_getdrive(&drive);
12         if (!_dos_getdiskfree(drive, &dfree))
13                 return dfree.avail_clusters * dfree.sectors_per_cluster * dfree.bytes_per_sector;
14         else {
15                 Int3();         // get MARK A!!!!!
16                 return ULONG_MAX;                                       // make be biggest it can be
17         }
18 }