Fix bug introduced in r21635.

svn path=/trunk/; revision=22499
This commit is contained in:
Filip Navara 2006-06-22 12:14:41 +00:00
parent eba80981e5
commit 2b5ee06b1a
2 changed files with 2 additions and 1 deletions

View file

@ -69,7 +69,7 @@ BOOL CALLBACK ConfigDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
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]);

View file

@ -98,6 +98,7 @@ void LoadSettings()
{
/* built-in coded message for first run */
lstrcpyn(g_szMessages[0], _T("ReactOS"), MAXMSG_LENGTH);
++g_nNumMessages;
}
RegCloseKey(hkey);