From faff43dadcc5ab6fc16ed23652cf64c32f4469a6 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sat, 10 Jan 2009 18:49:19 +0000 Subject: [PATCH] sync mlang with wine 1.1.12 svn path=/trunk/; revision=38687 --- reactos/dll/win32/mlang/regsvr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/mlang/regsvr.c b/reactos/dll/win32/mlang/regsvr.c index f5292bff704..eb6cbd4cc78 100644 --- a/reactos/dll/win32/mlang/regsvr.c +++ b/reactos/dll/win32/mlang/regsvr.c @@ -33,6 +33,8 @@ #include "mlang.h" #include "wine/debug.h" +#include "wine/unicode.h" + #include "initguid.h" WINE_DEFAULT_DEBUG_CHANNEL(mlang); @@ -163,7 +165,7 @@ static HRESULT register_interfaces(struct regsvr_interface const *list) KEY_READ | KEY_WRITE, NULL, &key, NULL); if (res != ERROR_SUCCESS) goto error_close_iid_key; - wsprintfW(buf, fmt, list->num_methods); + sprintfW(buf, fmt, list->num_methods); res = RegSetValueExW(key, NULL, 0, REG_SZ, (CONST BYTE*)buf, (lstrlenW(buf) + 1) * sizeof(WCHAR));