Alexandre Julliard : wordpad: Use C runtime wchar functions instead of wine/unicode.h.
Alexandre Julliard
julliard at winehq.org
Mon Apr 1 16:32:02 CDT 2019
Module: wine
Branch: master
Commit: 83c99c021983dda6f8ac6d4ce4d8c64f594784a5
URL: https://source.winehq.org/git/wine.git/?a=commit;h=83c99c021983dda6f8ac6d4ce4d8c64f594784a5
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 1 12:41:50 2019 +0200
wordpad: Use C runtime wchar functions instead of wine/unicode.h.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/wordpad/wordpad.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/programs/wordpad/wordpad.c b/programs/wordpad/wordpad.c
index 1ced34c..546d0b0 100644
--- a/programs/wordpad/wordpad.c
+++ b/programs/wordpad/wordpad.c
@@ -36,7 +36,6 @@
#include <math.h>
#include <errno.h>
-#include "wine/unicode.h"
#include "wordpad.h"
#ifdef NONAMELESSUNION
@@ -1383,7 +1382,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;
- sprintfW(buffer, fmt, converted, units_cmW);
+ swprintf(buffer, fmt, converted, units_cmW);
}
static BOOL get_comboexlist_selection(HWND hComboEx, LPWSTR wszBuffer, UINT bufferLength)
More information about the wine-cvs
mailing list