Small fix for the WPR_SIGNED case (count the sign).
This commit is contained in:
parent
7a513d2795
commit
347b7bbd51
|
@ -368,7 +368,7 @@ static INT16 wvsnprintf16( LPSTR buffer, UINT16 maxlen, LPCSTR spec, VA_LIST16 a
|
||||||
case WPR_UNSIGNED:
|
case WPR_UNSIGNED:
|
||||||
for (i = len; i < format.precision; i++, maxlen--) *p++ = '0';
|
for (i = len; i < format.precision; i++, maxlen--) *p++ = '0';
|
||||||
if (len > sign) memcpy( p, number + sign, len - sign );
|
if (len > sign) memcpy( p, number + sign, len - sign );
|
||||||
p += len;
|
p += len-sign;
|
||||||
break;
|
break;
|
||||||
case WPR_UNKNOWN:
|
case WPR_UNKNOWN:
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue