Commit b41ab972 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntdll: Support the %I format modifier.

parent 9c3dcdfb
......@@ -561,6 +561,12 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, __ms_va_list valis
}
else if( *(p+1) == '3' && *(p+2) == '2' )
p += 3;
else if( p[1] && strchr( "diouxX", p[1] ) )
{
if( sizeof(void *) == 8 )
flags.IntegerDouble = *p;
p++;
}
else if( isDigit(*(p+1)) || *(p+1) == 0 )
break;
else
......
......@@ -1362,7 +1362,7 @@ static void test__snprintf(void)
{
res = p__snprintf(buffer, sizeof(buffer), "%Ix %d", (ULONG_PTR)0x1234567890, 1);
ok(res == strlen(buffer), "wrong size %d\n", res);
todo_wine ok(!strcmp(buffer, "1234567890 1"), "got %s\n", debugstr_a(buffer));
ok(!strcmp(buffer, "1234567890 1"), "got %s\n", debugstr_a(buffer));
}
else
{
......
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