[PAINT]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Nov 2010 09:55:50 +0000 (09:55 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 22 Nov 2010 09:55:50 +0000 (09:55 +0000)
Fix syntax

svn path=/branches/cmake-bringup/; revision=49704

base/applications/paint/registry.c

index 392fc08..6f4e8e5 100644 (file)
 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;