From 283fdbd5105a35e93c350b491272885f3ad27e4f Mon Sep 17 00:00:00 2001 From: Sylvain Petreolle Date: Sat, 14 Nov 2009 15:44:27 +0000 Subject: [PATCH] GetCurrencyFormatW() formatting bug fix by Viliam Lejcik svn path=/trunk/; revision=44158 --- reactos/dll/win32/kernel32/misc/lcformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.1