Author: tfaber
Date: Sat Jun 29 13:05:52 2013
New Revision: 59361
URL:
http://svn.reactos.org/svn/reactos?rev=59361&view=rev
Log:
[DESK.CPL]
- Fix wrong buffer usage
CORE-7300 #resolve
Modified:
trunk/reactos/dll/cpl/desk/general.c
Modified: trunk/reactos/dll/cpl/desk/general.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/desk/general.c?rev…
==============================================================================
--- trunk/reactos/dll/cpl/desk/general.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/desk/general.c [iso-8859-1] Sat Jun 29 13:05:52 2013
@@ -30,12 +30,13 @@
0, KEY_READ, &hKey) == ERROR_SUCCESS)
for (;;)
{
+ TCHAR Buffer[LINE_LEN];
TCHAR Desc[LINE_LEN];
- if (SetupGetStringField(&Context, 0, Desc, sizeof(Desc), NULL)
&&
+ if (SetupGetStringField(&Context, 0, Buffer, sizeof(Buffer), NULL)
&&
SetupGetIntField(&Context, 1, &ci))
{
- _stprintf(Desc, _T("%s (%d DPI)"), Desc, ci);
+ _stprintf(Desc, _T("%s (%d DPI)"), Buffer, ci);
i = SendMessage(hFontSize, CB_ADDSTRING, 0, (LPARAM)Desc);
if (i != CB_ERR)
SendMessage(hFontSize, CB_SETITEMDATA, (WPARAM)i, (LPARAM)ci);