SystemParametersInfo returning a value for Wallpaper does not mean

that the registry key exists.
This commit is contained in:
Richard Cohen 2003-08-07 02:57:15 +00:00 committed by Alexandre Julliard
parent 574f058bae
commit 92e0a05749
1 changed files with 2 additions and 1 deletions

View File

@ -1051,7 +1051,6 @@ static void test_SPI_SETWALLPAPER( void ) /* 115 */
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 @@ static void test_SPI_SETWALLPAPER( void ) /* 115 */
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);
}
/*