Commit 02c7d192 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

wordpad: Use winelib's sprintfW for floating point formatting.

This fixes a regression introduced by commit ef23ef93.
parent 37d43496
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment