[RAPPS]
authorThomas Faber <thomas.faber@reactos.org>
Tue, 20 Oct 2015 08:15:30 +0000 (08:15 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Tue, 20 Oct 2015 08:15:30 +0000 (08:15 +0000)
- Pass the correct buffer size to StringCbCopyW

svn path=/trunk/; revision=69626

reactos/base/applications/rapps/misc.c
reactos/base/applications/rapps_new/misc.cpp

index f081dca..b284cee 100644 (file)
@@ -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 */
index d97cc31..62860ff 100644 (file)
@@ -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 */