Commit 9638e02d authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

Ensure digits are printable characters from oleaut32 Format command.

parent f466c651
...@@ -1386,7 +1386,7 @@ VARIANT_FormatNumber_Bool: ...@@ -1386,7 +1386,7 @@ VARIANT_FormatNumber_Bool:
TRACE("write %d fractional digits or skip\n", pToken[1]); TRACE("write %d fractional digits or skip\n", pToken[1]);
for (count = 0; count < fractionalDigits; count++) for (count = 0; count < fractionalDigits; count++)
pBuff[count] = rgbDig[wholeNumberDigits + count]; pBuff[count] = '0' + rgbDig[wholeNumberDigits + count];
pBuff += fractionalDigits; pBuff += fractionalDigits;
} }
else else
...@@ -1416,7 +1416,7 @@ VARIANT_FormatNumber_Bool: ...@@ -1416,7 +1416,7 @@ VARIANT_FormatNumber_Bool:
TRACE("write %d fractional digits or 0's\n", pToken[1]); TRACE("write %d fractional digits or 0's\n", pToken[1]);
for (count = 0; count < fractionalDigits; count++) for (count = 0; count < fractionalDigits; count++)
pBuff[count] = rgbDig[wholeNumberDigits + count]; pBuff[count] = '0' + rgbDig[wholeNumberDigits + count];
pBuff += fractionalDigits; pBuff += fractionalDigits;
if (pToken[1] > fractionalDigits) if (pToken[1] > fractionalDigits)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment