ntdll: Support the %I format modifier.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9c3dcdfb6c
commit
b41ab972ec
@ -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' )
|
else if( *(p+1) == '3' && *(p+2) == '2' )
|
||||||
p += 3;
|
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 )
|
else if( isDigit(*(p+1)) || *(p+1) == 0 )
|
||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
|
@ -1362,7 +1362,7 @@ static void test__snprintf(void)
|
|||||||
{
|
{
|
||||||
res = p__snprintf(buffer, sizeof(buffer), "%Ix %d", (ULONG_PTR)0x1234567890, 1);
|
res = p__snprintf(buffer, sizeof(buffer), "%Ix %d", (ULONG_PTR)0x1234567890, 1);
|
||||||
ok(res == strlen(buffer), "wrong size %d\n", res);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user