mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
load the wallpaper on startup and set it
svn path=/trunk/; revision=10579
This commit is contained in:
parent
c6a9402e60
commit
90e663c1bf
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: userinit.c,v 1.4 2004/08/17 21:47:36 weiden Exp $
|
||||
/* $Id: userinit.c,v 1.5 2004/08/17 21:49:51 weiden Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS Userinit Logon Application
|
||||
|
@ -124,12 +124,12 @@ void SetUserSettings(void)
|
|||
&Size) == ERROR_SUCCESS
|
||||
&& Type == REG_SZ)
|
||||
{
|
||||
/* Change the wallpaper */
|
||||
/* Load and change the wallpaper */
|
||||
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, szWallpaper, SPIF_SENDCHANGE);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Set the default wallpaper */
|
||||
/* remove the wallpaper */
|
||||
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, NULL, SPIF_SENDCHANGE);
|
||||
}
|
||||
RegCloseKey(hKey);
|
||||
|
|
Loading…
Reference in a new issue