winefile: Remove redundant check in format_bytes().
Gerald Pfeifer
gerald at pfeifer.com
Tue Oct 15 15:34:59 CDT 2013
Above this code we have
if (bytes < 1024)
sprintfW(buffer, sFmtSmall, (DWORD)bytes);
else
so this case is already covered since the else if I am touching
here will always be true.
Gerald
---
programs/winefile/winefile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c
index 3b30255..4729436 100644
--- a/programs/winefile/winefile.c
+++ b/programs/winefile/winefile.c
@@ -2658,7 +2658,7 @@ static void format_bytes(LPWSTR buffer, LONGLONG bytes)
fBytes = ((float)bytes)/1048576.f+.5f;
resid = IDS_UNIT_MB;
}
- else if (bytes >= 1024) /* 1 kB */
+ else /* bytes >= 1024 */ /* 1 kB */
{
fBytes = ((float)bytes)/1024.f+.5f;
resid = IDS_UNIT_KB;
--
1.8.4
More information about the wine-patches
mailing list