Fix for INT21_GetFreeDiskSpace

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Nov 24 16:04:33 CST 2003


Changelog:
	wine/dlls/winedos/int21.c: INT21_GetFreeDiskSpace()
	The drive parameter is found in the DL register
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/winedos/int21.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/int21.c,v
retrieving revision 1.48
diff -u -r1.48 int21.c
--- wine/dlls/winedos/int21.c	15 Nov 2003 00:13:21 -0000	1.48
+++ wine/dlls/winedos/int21.c	24 Nov 2003 22:01:07 -0000
@@ -3168,7 +3168,7 @@
     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, &sector_bytes,
                             &free_clusters, &total_clusters )) return 0;
     SET_AX( context, cluster_sectors );



More information about the wine-patches mailing list