From 08264e679d9e9f9617acc03ffe84b1e73895c495 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Fri, 18 Jul 2003 23:00:26 +0000 Subject: [PATCH] wvsnprint accepts %p too (on win2k). --- dlls/user/wsprintf.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/user/wsprintf.c b/dlls/user/wsprintf.c index 0ee68dd4528..8ec547b4016 100644 --- a/dlls/user/wsprintf.c +++ b/dlls/user/wsprintf.c @@ -135,6 +135,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 */ @@ -207,6 +211,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 */