From: Sylvain Petreolle Date: Sat, 14 Nov 2009 15:44:27 +0000 (+0000) Subject: GetCurrencyFormatW() formatting bug fix by Viliam Lejcik X-Git-Tag: ReactOS-0.3.11~55 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=283fdbd5105a35e93c350b491272885f3ad27e4f GetCurrencyFormatW() formatting bug fix by Viliam Lejcik svn path=/trunk/; revision=44158 --- diff --git a/reactos/dll/win32/kernel32/misc/lcformat.c b/reactos/dll/win32/kernel32/misc/lcformat.c index 5cce484333f..2cbabe8fa5e 100644 --- a/reactos/dll/win32/kernel32/misc/lcformat.c +++ b/reactos/dll/win32/kernel32/misc/lcformat.c @@ -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;