From 9638e02d7dc4d8879d1b0945f86d2378bcedd4c9 Mon Sep 17 00:00:00 2001 From: Jason Edmeades Date: Thu, 26 Aug 2004 00:28:37 +0000 Subject: [PATCH] Ensure digits are printable characters from oleaut32 Format command. --- dlls/oleaut32/varformat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c index 149a5c0a5c0..4319dbc7faf 100644 --- a/dlls/oleaut32/varformat.c +++ b/dlls/oleaut32/varformat.c @@ -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) {