mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 18:35:39 +00:00
INT21_GetFreeDiskSpace(): The drive parameter is found in the DL
register.
This commit is contained in:
parent
9e73f55af3
commit
111b1cbf68
|
@ -3167,7 +3167,7 @@ static int INT21_GetFreeDiskSpace( CONTEXT86 *context )
|
|||
DWORD cluster_sectors, sector_bytes, free_clusters, total_clusters;
|
||||
WCHAR root[] = {'A',':','\\',0};
|
||||
|
||||
root[0] += INT21_MapDrive(BL_reg(context));
|
||||
root[0] += INT21_MapDrive(DL_reg(context));
|
||||
if (!GetDiskFreeSpaceW( root, &cluster_sectors, §or_bytes,
|
||||
&free_clusters, &total_clusters )) return 0;
|
||||
SET_AX( context, cluster_sectors );
|
||||
|
|
Loading…
Reference in a new issue