From 0d88632d20fd16ed3aa46f2f1235f17bf9a74be4 Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 14 May 2005 12:32:44 +0000 Subject: [PATCH] sync to Wine Patch: format_bytes() svn path=/trunk/; revision=15272 --- reactos/subsys/system/winefile/winefile.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/subsys/system/winefile/winefile.c b/reactos/subsys/system/winefile/winefile.c index 516f0a158ff..d9897c44990 100644 --- a/reactos/subsys/system/winefile/winefile.c +++ b/reactos/subsys/system/winefile/winefile.c @@ -2454,12 +2454,12 @@ static void format_bytes(LPTSTR buffer, LONGLONG bytes) 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); }