Author: navaraf
Date: Thu Jun 22 16:14:41 2006
New Revision: 22499
URL:
http://svn.reactos.ru/svn/reactos?rev=22499&view=rev
Log:
Fix bug introduced in r21635.
Modified:
trunk/reactos/base/applications/screensavers/matrix/config.c
trunk/reactos/base/applications/screensavers/matrix/settings.c
Modified: trunk/reactos/base/applications/screensavers/matrix/config.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/screensav…
==============================================================================
--- trunk/reactos/base/applications/screensavers/matrix/config.c (original)
+++ trunk/reactos/base/applications/screensavers/matrix/config.c Thu Jun 22 16:14:41 2006
@@ -69,7 +69,7 @@
prevheight = GetSystemMetrics(SM_CYSCREEN) / GLYPH_HEIGHT + 1;
//Add any saved messages to the combo box
- for(index = 0; index <= g_nNumMessages; index++)
+ for(index = 0; index < g_nNumMessages; index++)
{
if(lstrlen(g_szMessages[index]) > 0)
SendDlgItemMessage(hwnd, IDC_COMBO1, CB_ADDSTRING, 0, (LPARAM)g_szMessages[index]);
Modified: trunk/reactos/base/applications/screensavers/matrix/settings.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/base/applications/screensav…
==============================================================================
--- trunk/reactos/base/applications/screensavers/matrix/settings.c (original)
+++ trunk/reactos/base/applications/screensavers/matrix/settings.c Thu Jun 22 16:14:41
2006
@@ -98,6 +98,7 @@
{
/* built-in coded message for first run */
lstrcpyn(g_szMessages[0], _T("ReactOS"), MAXMSG_LENGTH);
+ ++g_nNumMessages;
}
RegCloseKey(hkey);