[ros-diffs] [tkreuzer] 49704: [PAINT] Fix syntax

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Nov 22 09:55:51 UTC 2010


Author: tkreuzer
Date: Mon Nov 22 09:55:50 2010
New Revision: 49704

URL: http://svn.reactos.org/svn/reactos?rev=49704&view=rev
Log:
[PAINT]
Fix syntax

Modified:
    branches/cmake-bringup/base/applications/paint/registry.c

Modified: branches/cmake-bringup/base/applications/paint/registry.c
URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/base/applications/paint/registry.c?rev=49704&r1=49703&r2=49704&view=diff
==============================================================================
--- branches/cmake-bringup/base/applications/paint/registry.c [iso-8859-1] (original)
+++ branches/cmake-bringup/base/applications/paint/registry.c [iso-8859-1] Mon Nov 22 09:55:50 2010
@@ -16,10 +16,10 @@
 void
 SetWallpaper(TCHAR * FileName, DWORD dwStyle, DWORD dwTile) //FIXME: Has to be called 2x to apply the pattern (tiled/stretched) too
 {
-    SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) FileName, SPIF_UPDATEINIFILE);
-
     HKEY hDesktop;
     TCHAR szStyle[3], szTile[3];
+
+    SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, (PVOID) FileName, SPIF_UPDATEINIFILE);
 
     if ((dwStyle > 2) || (dwTile > 2))
         return;




More information about the Ros-diffs mailing list