mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
[W32KNAPI] - Add some more NtUserGetIconInfo tests
svn path=/trunk/; revision=48104
This commit is contained in:
parent
ec5e0ea56a
commit
0f1aba925e
1 changed files with 26 additions and 0 deletions
|
@ -99,5 +99,31 @@ Test_NtUserGetIconInfo(PTESTINFO pti)
|
||||||
|
|
||||||
DestroyIcon(hIcon);
|
DestroyIcon(hIcon);
|
||||||
|
|
||||||
|
/* Test full param, with foreign icon */
|
||||||
|
hIcon = LoadImageA(NULL,
|
||||||
|
OIC_HAND,
|
||||||
|
IMAGE_ICON,
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
LR_DEFAULTSIZE);
|
||||||
|
|
||||||
|
TEST(hIcon != NULL);
|
||||||
|
|
||||||
|
RtlInitUnicodeString(&hInstStr, NULL);
|
||||||
|
RtlInitUnicodeString(&ResourceStr, NULL);
|
||||||
|
|
||||||
|
TEST(NtUserGetIconInfo(hIcon,
|
||||||
|
&iinfo,
|
||||||
|
&hInstStr,
|
||||||
|
&ResourceStr,
|
||||||
|
&bpp,
|
||||||
|
FALSE) == TRUE);
|
||||||
|
|
||||||
|
TESTX(hInstStr.Buffer == NULL, "hInstStr.buffer : %p\n", hInstStr.Buffer);
|
||||||
|
TEST((LPCTSTR)ResourceStr.Buffer == MAKEINTRESOURCE(IDI_ICON));
|
||||||
|
TEST(bpp == 32);
|
||||||
|
|
||||||
|
DestroyIcon(hIcon);
|
||||||
|
|
||||||
return APISTATUS_NORMAL;
|
return APISTATUS_NORMAL;
|
||||||
}
|
}
|
Loading…
Reference in a new issue