Ensure digits are printable characters from oleaut32 Format command.
This commit is contained in:
parent
f466c651ae
commit
9638e02d7d
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue