mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 18:02:05 +00:00
Bit of fun. Add a built-in coded message for the first time the screensaver is run.
If removed, it will not reappear. svn path=/trunk/; revision=21635
This commit is contained in:
parent
dbcd6ec20e
commit
e2ba765506
2 changed files with 6 additions and 1 deletions
|
@ -68,7 +68,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]);
|
||||
|
|
|
@ -93,6 +93,11 @@ void LoadSettings()
|
|||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
/* built-in coded message for first run */
|
||||
lstrcpyn(g_szMessages[0], "ReactOS", MAXMSG_LENGTH);
|
||||
}
|
||||
|
||||
RegCloseKey(hkey);
|
||||
free(hugechar);
|
||||
|
|
Loading…
Reference in a new issue