Ensure digits are printable characters from oleaut32 Format command.

This commit is contained in:
Jason Edmeades 2004-08-26 00:28:37 +00:00 committed by Alexandre Julliard
parent f466c651ae
commit 9638e02d7d
1 changed files with 2 additions and 2 deletions

View File

@ -1386,7 +1386,7 @@ VARIANT_FormatNumber_Bool:
TRACE("write %d fractional digits or skip\n", pToken[1]);
for (count = 0; count < fractionalDigits; count++)
pBuff[count] = rgbDig[wholeNumberDigits + count];
pBuff[count] = '0' + rgbDig[wholeNumberDigits + count];
pBuff += fractionalDigits;
}
else
@ -1416,7 +1416,7 @@ VARIANT_FormatNumber_Bool:
TRACE("write %d fractional digits or 0's\n", pToken[1]);
for (count = 0; count < fractionalDigits; count++)
pBuff[count] = rgbDig[wholeNumberDigits + count];
pBuff[count] = '0' + rgbDig[wholeNumberDigits + count];
pBuff += fractionalDigits;
if (pToken[1] > fractionalDigits)
{