Small fix for the WPR_SIGNED case (count the sign).
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Mon, 26 Jan 2004 20:13:36 +0000 (20:13 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 26 Jan 2004 20:13:36 +0000 (20:13 +0000)
dlls/user/wsprintf.c

index 0a4ee463f097fe308cd130c64e6437076fd94417..f539bb585da409c247717aee57153c73eb6f0b85 100644 (file)
@@ -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;