Commit de03abd5 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: FormatMessage precision arguments are integers.

parent e4300d61
......@@ -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++;
}
......
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