[ros-diffs] [cfinck] 28200: 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.
cfinck at svn.reactos.org
cfinck at svn.reactos.org
Mon Aug 6 21:07:35 CEST 2007
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/userinit.c?rev=28200&r1=28199&r2=28200&view=diff
==============================================================================
--- 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);
}
More information about the Ros-diffs
mailing list