Sysparams test fix for wallpaper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The standard tools/wineinstall without windows fails the sysparams test because the wallpaper key doesn't exist in the register (actually the only Control Panel\Desktop key is DragFullWindows="0").

This just changes the wallpaper test to be like the other sysparam tests.

+ Changelog
SystemParametersInfo returning a value for Wallpaper does not mean that the registry key exists.



diff -u dlls/user/tests/sysparams.c dlls/user/tests/sysparams.c
--- dlls/user/tests/sysparams.c	2003-04-13 11:56:35.000000000 +0100
+++ dlls/user/tests/sysparams.c	2003-07-21 18:06:43.000000000 +0100
@@ -1051,7 +1051,6 @@
         return;
     }
     ok(rc!=0,"SystemParametersInfoA: rc=%d err=%ld\n",rc,GetLastError());
-    test_reg_key(SPI_SETDESKWALLPAPER_REGKEY, SPI_SETDESKWALLPAPER_VALNAME, oldval);
 
     strcpy(newval, "");
     rc=SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, newval, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
@@ -1060,6 +1059,8 @@
 
     rc=SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, oldval, SPIF_UPDATEINIFILE);
     ok(rc!=0,"***warning*** failed to restore the original value: rc=%d err=%ld\n",rc,GetLastError());
+
+    test_reg_key(SPI_SETDESKWALLPAPER_REGKEY, SPI_SETDESKWALLPAPER_VALNAME, oldval);
 }
 
 /*

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux