From 347b7bbd5196d0831217a4393664c1dac7cd5a74 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Mon, 26 Jan 2004 20:13:36 +0000 Subject: [PATCH] Small fix for the WPR_SIGNED case (count the sign). --- dlls/user/wsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user/wsprintf.c b/dlls/user/wsprintf.c index 0a4ee463f09..f539bb585da 100644 --- a/dlls/user/wsprintf.c +++ b/dlls/user/wsprintf.c @@ -368,7 +368,7 @@ static INT16 wvsnprintf16( LPSTR buffer, UINT16 maxlen, LPCSTR spec, VA_LIST16 a case WPR_UNSIGNED: for (i = len; i < format.precision; i++, maxlen--) *p++ = '0'; if (len > sign) memcpy( p, number + sign, len - sign ); - p += len; + p += len-sign; break; case WPR_UNKNOWN: continue;