mirror of
https://github.com/reactos/reactos.git
synced 2024-08-21 02:43:48 +00:00
Fix bug introduced in r21635.
svn path=/trunk/; revision=22499
This commit is contained in:
parent
eba80981e5
commit
2b5ee06b1a
|
@ -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]);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue