Commit 111b1cbf authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

INT21_GetFreeDiskSpace(): The drive parameter is found in the DL

register.
parent 9e73f55a
...@@ -3167,7 +3167,7 @@ static int INT21_GetFreeDiskSpace( CONTEXT86 *context ) ...@@ -3167,7 +3167,7 @@ static int INT21_GetFreeDiskSpace( CONTEXT86 *context )
DWORD cluster_sectors, sector_bytes, free_clusters, total_clusters; DWORD cluster_sectors, sector_bytes, free_clusters, total_clusters;
WCHAR root[] = {'A',':','\\',0}; WCHAR root[] = {'A',':','\\',0};
root[0] += INT21_MapDrive(BL_reg(context)); root[0] += INT21_MapDrive(DL_reg(context));
if (!GetDiskFreeSpaceW( root, &cluster_sectors, &sector_bytes, if (!GetDiskFreeSpaceW( root, &cluster_sectors, &sector_bytes,
&free_clusters, &total_clusters )) return 0; &free_clusters, &total_clusters )) return 0;
SET_AX( context, cluster_sectors ); SET_AX( context, cluster_sectors );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment