Commit 92e0a057 authored by Richard Cohen's avatar Richard Cohen Committed by Alexandre Julliard

SystemParametersInfo returning a value for Wallpaper does not mean

that the registry key exists.
parent 574f058b
...@@ -1051,7 +1051,6 @@ static void test_SPI_SETWALLPAPER( void ) /* 115 */ ...@@ -1051,7 +1051,6 @@ static void test_SPI_SETWALLPAPER( void ) /* 115 */
return; return;
} }
ok(rc!=0,"SystemParametersInfoA: rc=%d err=%ld\n",rc,GetLastError()); ok(rc!=0,"SystemParametersInfoA: rc=%d err=%ld\n",rc,GetLastError());
test_reg_key(SPI_SETDESKWALLPAPER_REGKEY, SPI_SETDESKWALLPAPER_VALNAME, oldval);
strcpy(newval, ""); strcpy(newval, "");
rc=SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, newval, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE); rc=SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, newval, SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);
...@@ -1060,6 +1059,8 @@ static void test_SPI_SETWALLPAPER( void ) /* 115 */ ...@@ -1060,6 +1059,8 @@ static void test_SPI_SETWALLPAPER( void ) /* 115 */
rc=SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, oldval, SPIF_UPDATEINIFILE); 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()); 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);
} }
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment