From 66ff3d577462aa20e1712fc047001bbbf1376007 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 28 Sep 2010 14:24:17 +0000 Subject: [PATCH] [KERNEL32] - Igor Paliychuk: Fix properly showing genitive names from NLS data by applying a missed Wine sync. See issue #5556 for more details. svn path=/trunk/; revision=48917 --- reactos/dll/win32/kernel32/misc/lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/kernel32/misc/lang.c b/reactos/dll/win32/kernel32/misc/lang.c index e2333d04672..ac9868e21a1 100644 --- a/reactos/dll/win32/kernel32/misc/lang.c +++ b/reactos/dll/win32/kernel32/misc/lang.c @@ -1761,7 +1761,7 @@ GetLocaleInfoW ( } else { - memcpy( lpLCData, ch + 1, *ch * sizeof(WCHAR) ); + memcpy( lpLCData, ch + 1, nRet * sizeof(WCHAR) ); if (LCType != LOCALE_FONTSIGNATURE) lpLCData[nRet-1] = 0; } return nRet;