explorerframe/tests: Initialize cbstate to a dummy value to make sure it's being set properly.

This commit is contained in:
Alexandre Julliard 2010-08-25 14:44:12 +02:00
parent 21abfc5355
commit 8447ecc591
1 changed files with 3 additions and 0 deletions

View File

@ -1662,6 +1662,7 @@ static void test_basics(void)
todo_wine
{
cbstate = -1;
hr = INameSpaceTreeControl_GetItemCustomState(pnstc, psitestdir, &cbstate);
ok(hr == S_OK, "Got 0x%08x\n", hr);
ok(cbstate == BST_UNCHECKED || broken(cbstate == BST_CHECKED /* Vista x64 */),
@ -1670,6 +1671,7 @@ static void test_basics(void)
hr = INameSpaceTreeControl_SetItemCustomState(pnstc, psitestdir, BST_CHECKED);
ok(hr == S_OK, "Got 0x%08x\n", hr);
cbstate = -1;
hr = INameSpaceTreeControl_GetItemCustomState(pnstc, psitestdir, &cbstate);
ok(hr == S_OK, "Got 0x%08x\n", hr);
ok(cbstate == BST_CHECKED, "Got %d\n", cbstate);
@ -1677,6 +1679,7 @@ static void test_basics(void)
hr = INameSpaceTreeControl_SetItemCustomState(pnstc, psitestdir, 0xFFF);
ok(hr == S_OK, "Got 0x%08x\n", hr);
cbstate = -1;
hr = INameSpaceTreeControl_GetItemCustomState(pnstc, psitestdir, &cbstate);
ok(hr == S_OK, "Got 0x%08x\n", hr);
ok(cbstate == 0xF, "Got %d\n", cbstate);