From e1901985426f06e03b85de58354eea25049be714 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 20 Oct 2015 08:15:30 +0000 Subject: [PATCH] [RAPPS] - Pass the correct buffer size to StringCbCopyW svn path=/trunk/; revision=69626 --- reactos/base/applications/rapps/misc.c | 2 +- reactos/base/applications/rapps_new/misc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/applications/rapps/misc.c b/reactos/base/applications/rapps/misc.c index f081dca2f9f..b284cee54ee 100644 --- a/reactos/base/applications/rapps/misc.c +++ b/reactos/base/applications/rapps/misc.c @@ -431,7 +431,7 @@ UINT ParserGetString(LPCWSTR lpKeyName, LPWSTR lpReturnedString, UINT nSize, LPC /* copy the locale-dependent string into the buffer of the future neutral one */ StringCbCopyW(szCachedINISectionLocaleNeutral, - sizeof(szCachedINISectionLocale), + sizeof(szCachedINISectionLocaleNeutral), szCachedINISectionLocale); /* turn "Section.0c0a" into "Section.0a", keeping just the neutral lang part */ diff --git a/reactos/base/applications/rapps_new/misc.cpp b/reactos/base/applications/rapps_new/misc.cpp index d97cc313e6b..62860ff3fe5 100644 --- a/reactos/base/applications/rapps_new/misc.cpp +++ b/reactos/base/applications/rapps_new/misc.cpp @@ -431,7 +431,7 @@ UINT ParserGetString(LPCWSTR lpKeyName, LPWSTR lpReturnedString, UINT nSize, LPC /* copy the locale-dependent string into the buffer of the future neutral one */ StringCbCopyW(szCachedINISectionLocaleNeutral, - sizeof(szCachedINISectionLocale), + sizeof(szCachedINISectionLocaleNeutral), szCachedINISectionLocale); /* turn "Section.0c0a" into "Section.0a", keeping just the neutral lang part */ -- 2.17.1