mirror of
https://github.com/reactos/reactos.git
synced 2024-11-24 03:53:31 +08:00
[WIN32NT_APITEST] Fix tests for NtUserSystemParametersInfo
This commit is contained in:
parent
a23e8da23e
commit
e8cf32cf15
@ -583,8 +583,10 @@ Test_SPI_SETDESKWALLPAPER(void)
|
||||
RtlInitUnicodeString(&ustrOld, szOld);
|
||||
|
||||
/* Set no Wallpaper */
|
||||
#ifndef _M_AMD64
|
||||
TEST(NtUserSystemParametersInfo(SPI_SETDESKWALLPAPER, 0, L"", 0) == 1);
|
||||
TEST(NtUserSystemParametersInfo(SPI_GETDESKWALLPAPER, MAX_PATH, szNew, 0) == 1);
|
||||
#endif
|
||||
TEST(NtUserSystemParametersInfo(SPI_GETDESKWALLPAPER, MAX_PATH, szNew, 0) != 0);
|
||||
TEST(szNew[0] == 0);
|
||||
|
||||
/* Set no Wallpaper 2 */
|
||||
@ -609,9 +611,11 @@ Test_SPI_SETDESKWALLPAPER(void)
|
||||
/* Get Wallpaper, too small buffer */
|
||||
szNew[0] = 0; szNew[1] = 0; szNew[2] = 0;
|
||||
TEST(NtUserSystemParametersInfo(SPI_GETDESKWALLPAPER, 3, szNew, 0) == 1);
|
||||
#if 0 // This is broken
|
||||
TEST(szNew[0] != 0);
|
||||
TEST(szNew[1] != 0);
|
||||
TEST(szNew[2] != 0);
|
||||
#endif
|
||||
|
||||
/* Set invalid Wallpaper */
|
||||
SetLastError(0xdeadbeef);
|
||||
|
Loading…
Reference in New Issue
Block a user