GetCurrencyFormatW() formatting bug fix by Viliam Lejcik <lejcik at host dot sk>

svn path=/trunk/; revision=44158
This commit is contained in:
Sylvain Petreolle 2009-11-14 15:44:27 +00:00
parent 960d3e56d4
commit 283fdbd510

View file

@ -1587,7 +1587,7 @@ GetCurrencyFormatW_Error:
dwState |= NF_DIGITS_OUT;
dwCurrentGroupCount++;
if (szSrc >= lpszValue && dwCurrentGroupCount == dwGroupCount)
if (szSrc >= lpszValue && dwCurrentGroupCount == dwGroupCount && *szSrc != '-')
{
LPWSTR lpszGrp = lpFormat->lpThousandSep + strlenW(lpFormat->lpThousandSep) - 1;