mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +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;
|
prevheight = GetSystemMetrics(SM_CYSCREEN) / GLYPH_HEIGHT + 1;
|
||||||
|
|
||||||
//Add any saved messages to the combo box
|
//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)
|
if(lstrlen(g_szMessages[index]) > 0)
|
||||||
SendDlgItemMessage(hwnd, IDC_COMBO1, CB_ADDSTRING, 0, (LPARAM)g_szMessages[index]);
|
SendDlgItemMessage(hwnd, IDC_COMBO1, CB_ADDSTRING, 0, (LPARAM)g_szMessages[index]);
|
||||||
|
|
|
@ -98,6 +98,7 @@ void LoadSettings()
|
||||||
{
|
{
|
||||||
/* built-in coded message for first run */
|
/* built-in coded message for first run */
|
||||||
lstrcpyn(g_szMessages[0], _T("ReactOS"), MAXMSG_LENGTH);
|
lstrcpyn(g_szMessages[0], _T("ReactOS"), MAXMSG_LENGTH);
|
||||||
|
++g_nNumMessages;
|
||||||
}
|
}
|
||||||
|
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
|
|
Loading…
Reference in a new issue