From 00d62df5ab2916d57bb72653ac48c73ea80d6014 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Tue, 6 Jun 2006 23:22:11 +0000 Subject: [PATCH] using uppercaps for %p instead lowercaps when it format the string, that make passing one more of wine test 27 fails now svn path=/trunk/; revision=22259 --- reactos/lib/rtl/sprintf.c | 3 +++ reactos/lib/rtl/swprintf.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/reactos/lib/rtl/sprintf.c b/reactos/lib/rtl/sprintf.c index 5d9c53a7c62..064b65343df 100644 --- a/reactos/lib/rtl/sprintf.c +++ b/reactos/lib/rtl/sprintf.c @@ -566,6 +566,9 @@ int _vsnprintf(char *buf, size_t cnt, const char *fmt, va_list args) continue; case 'p': + if ((flags & LARGE) == 0) + flags |= LARGE; + if (field_width == -1) { field_width = 2 * sizeof(void *); flags |= ZEROPAD; diff --git a/reactos/lib/rtl/swprintf.c b/reactos/lib/rtl/swprintf.c index bef6e91b5c0..f5392bb671b 100644 --- a/reactos/lib/rtl/swprintf.c +++ b/reactos/lib/rtl/swprintf.c @@ -565,6 +565,9 @@ int _vsnwprintf(wchar_t *buf, size_t cnt, const wchar_t *fmt, va_list args) continue; case L'p': + if ((flags & LARGE) == 0) + flags |= LARGE; + if (field_width == -1) { field_width = 2*sizeof(void *); flags |= ZEROPAD;