Zebediah Figura : ntdll: Support the %I format modifier.
Alexandre Julliard
julliard at winehq.org
Sun Feb 2 12:56:44 CST 2020
Module: wine
Branch: master
Commit: b41ab972ec7e3da950f0c9e514a5530f48ea931c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b41ab972ec7e3da950f0c9e514a5530f48ea931c
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Jan 30 21:36:15 2020 -0600
ntdll: Support the %I format modifier.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntdll/printf.c | 6 ++++++
dlls/ntdll/tests/string.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/ntdll/printf.c b/dlls/ntdll/printf.c
index f61441b36b..d5b197396a 100644
--- a/dlls/ntdll/printf.c
+++ b/dlls/ntdll/printf.c
@@ -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
diff --git a/dlls/ntdll/tests/string.c b/dlls/ntdll/tests/string.c
index 72428fca91..dfdc4f3140 100644
--- a/dlls/ntdll/tests/string.c
+++ b/dlls/ntdll/tests/string.c
@@ -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
{
More information about the wine-cvs
mailing list