Module: wine Branch: master Commit: de03abd532e767e6b3aa8104286f85b65c4caa67 URL: http://source.winehq.org/git/wine.git/?a=commit;h=de03abd532e767e6b3aa810428...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jun 24 23:10:04 2013 +0200
kernel32: FormatMessage precision arguments are integers.
---
dlls/kernel32/format_msg.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/format_msg.c b/dlls/kernel32/format_msg.c index 7ce4f0a..37dcdb3 100644 --- a/dlls/kernel32/format_msg.c +++ b/dlls/kernel32/format_msg.c @@ -127,7 +127,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format, DWORD flags, struct format_args *args, LPWSTR *result ) { - static const WCHAR fmt_lu[] = {'%','l','u',0}; + static const WCHAR fmt_u[] = {'%','u',0}; WCHAR *wstring = NULL, *p, fmt[256]; ULONG_PTR arg; int size; @@ -167,7 +167,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format, { if (*format == '*') { - p += sprintfW( p, fmt_lu, get_arg( insert, flags, args )); + p += sprintfW( p, fmt_u, get_arg( insert, flags, args )); insert = -1; format++; } @@ -180,7 +180,7 @@ static LPCWSTR format_insert( BOOL unicode_caller, int insert, LPCWSTR format, *p++ = *format++; if (*format == '*') { - p += sprintfW( p, fmt_lu, get_arg( insert, flags, args )); + p += sprintfW( p, fmt_u, get_arg( insert, flags, args )); insert = -1; format++; }