From 8447ecc59177899775b8226cb90a0c3b8689f8ba Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 25 Aug 2010 14:44:12 +0200 Subject: [PATCH] explorerframe/tests: Initialize cbstate to a dummy value to make sure it's being set properly. --- dlls/explorerframe/tests/nstc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/explorerframe/tests/nstc.c b/dlls/explorerframe/tests/nstc.c index 5142d84d9e..d5dd5cd1f4 100644 --- a/dlls/explorerframe/tests/nstc.c +++ b/dlls/explorerframe/tests/nstc.c @@ -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);