From 70d7e57a1d032b133382d4d264faba6f20da5946 Mon Sep 17 00:00:00 2001 From: Steven Edwards Date: Mon, 28 Jul 2003 03:51:33 +0000 Subject: [PATCH] Mike McCormack wvsnprint accepts %p too (on win2k). svn path=/trunk/; revision=5300 --- reactos/lib/user32/misc/sprintf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/lib/user32/misc/sprintf.c b/reactos/lib/user32/misc/sprintf.c index 8c3c9437b70..e74f0ca6ae2 100644 --- a/reactos/lib/user32/misc/sprintf.c +++ b/reactos/lib/user32/misc/sprintf.c @@ -132,6 +132,10 @@ static INT WPRINTF_ParseFormatA( LPCSTR format, WPRINTF_FORMAT *res ) case 'u': res->type = WPR_UNSIGNED; break; + case 'p': + res->width = 8; + res->flags |= WPRINTF_ZEROPAD; + /* fall through */ case 'X': res->flags |= WPRINTF_UPPER_HEX; /* fall through */ @@ -204,6 +208,10 @@ static INT WPRINTF_ParseFormatW( LPCWSTR format, WPRINTF_FORMAT *res ) case 'u': res->type = WPR_UNSIGNED; break; + case 'p': + res->width = 8; + res->flags |= WPRINTF_ZEROPAD; + /* fall through */ case 'X': res->flags |= WPRINTF_UPPER_HEX; /* fall through */