Author: cfinck
Date: Mon Aug 6 23:07:34 2007
New Revision: 28200
URL:
http://svn.reactos.org/svn/reactos?rev=28200&view=rev
Log:
Expand environment strings in the szWallpaper variable. (patch by Marc Piulachs, marc DOT
piulachs AT codexchange DOT net)
This is the same way how Windows XP does it (allowing environment variables in the
"Wallpaper" registry value, but not as an argument for SystemParametersInfo,
SPI_SETDESKWALLPAPER)
See issue #2536 for more details.
Modified:
trunk/reactos/base/system/userinit/userinit.c
Modified: trunk/reactos/base/system/userinit/userinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
==============================================================================
--- trunk/reactos/base/system/userinit/userinit.c (original)
+++ trunk/reactos/base/system/userinit/userinit.c Mon Aug 6 23:07:34 2007
@@ -434,6 +434,8 @@
&Size) == ERROR_SUCCESS
&& Type == REG_SZ)
{
+ ExpandEnvironmentStrings(szWallpaper, szWallpaper, MAX_PATH);
+
/* Load and change the wallpaper */
SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, szWallpaper, SPIF_SENDCHANGE);
}