winefile: Fix the display of free disk space in the statusbar.

This commit is contained in:
Jan Zerebecki 2006-09-06 10:45:02 +02:00 committed by Alexandre Julliard
parent 2a42379a8e
commit 66e0e06b98
1 changed files with 3 additions and 3 deletions

View File

@ -2941,11 +2941,11 @@ static void format_bytes(LPTSTR buffer, LONGLONG bytes)
float fBytes = (float)bytes;
if (bytes >= 1073741824) /* 1 GB */
wsprintf(buffer, sFmtGB, fBytes/1073741824.f+.5f);
_stprintf(buffer, sFmtGB, fBytes/1073741824.f+.5f);
else if (bytes >= 1048576) /* 1 MB */
wsprintf(buffer, sFmtMB, fBytes/1048576.f+.5f);
_stprintf(buffer, sFmtMB, fBytes/1048576.f+.5f);
else if (bytes >= 1024) /* 1 kB */
wsprintf(buffer, sFmtkB, fBytes/1024.f+.5f);
_stprintf(buffer, sFmtkB, fBytes/1024.f+.5f);
else
_stprintf(buffer, sLongNumFmt, bytes);
}