mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
winefile: Fix the display of free disk space in the statusbar.
This commit is contained in:
parent
2a42379a8e
commit
66e0e06b98
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user