Dylan Smith : wordpad: Use winelib's sprintfW for floating point formatting .
Alexandre Julliard
julliard at winehq.org
Fri Jan 9 09:52:12 CST 2009
Module: wine
Branch: master
Commit: 02c7d192b0c27ed6f2007bcbaf85b19a0f0ea5b5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=02c7d192b0c27ed6f2007bcbaf85b19a0f0ea5b5
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Thu Jan 8 13:15:33 2009 -0500
wordpad: Use winelib's sprintfW for floating point formatting.
This fixes a regression introduced by commit
ef23ef93357689335749310957f68a3ad9179d4a.
---
programs/wordpad/wordpad.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index dd334ae..fe78012 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -1314,7 +1314,7 @@ static void number_with_units(LPWSTR buffer, int number)
static const WCHAR fmt[] = {'%','.','2','f',' ','%','s','\0'};
float converted = (float)number / (float)TWIPS_PER_INCH *(float)CENTMM_PER_INCH / 1000.0;
- wsprintfW(buffer, fmt, converted, units_cmW);
+ sprintfW(buffer, fmt, converted, units_cmW);
}
static BOOL get_comboexlist_selection(HWND hComboEx, LPWSTR wszBuffer, UINT bufferLength)
More information about the wine-cvs
mailing list