Module: wine Branch: master Commit: 66e0e06b98a570950ecf3164183f3e32a76d03be URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=66e0e06b98a570950ecf3164...
Author: Jan Zerebecki jan.wine@zerebecki.de Date: Wed Sep 6 10:45:02 2006 +0200
winefile: Fix the display of free disk space in the statusbar.
---
programs/winefile/winefile.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 8b03f1e..3ec614e 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -2941,11 +2941,11 @@ static void format_bytes(LPTSTR buffer, 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); }