sync to Wine Patch: format_bytes()
Modified: trunk/reactos/subsys/system/winefile/winefile.c

Modified: trunk/reactos/subsys/system/winefile/winefile.c
--- trunk/reactos/subsys/system/winefile/winefile.c	2005-05-13 21:23:37 UTC (rev 15271)
+++ trunk/reactos/subsys/system/winefile/winefile.c	2005-05-14 12:32:44 UTC (rev 15272)
@@ -2454,12 +2454,12 @@
 
 	float fBytes = (float)bytes;
 
-	if (bytes >= 1073741824)	// 1 GB
+	if (bytes >= 1073741824)	/* 1 GB */
 		_stprintf(buffer, sFmtGB, fBytes/1073741824.f+.5f);
-	else if (bytes >= 1048576)	// 1 MB
+	else if (bytes >= 1048576)	/* 1 MB */
 		_stprintf(buffer, sFmtMB, fBytes/1048576.f+.5f);
-	else if (bytes >= 1024)		// 1 kB
-		_stprintf(buffer, sFmtMB, fBytes/1024.f+.5f);
+	else if (bytes >= 1024)		/* 1 kB */
+		_stprintf(buffer, sFmtkB, fBytes/1024.f+.5f);
 	else
 		_stprintf(buffer, sLongNumFmt, bytes);
 }