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

Alexandre Julliard julliard at winehq.org
Wed Aug 25 12:35:05 CDT 2010


Module: wine
Branch: master
Commit: 8447ecc59177899775b8226cb90a0c3b8689f8ba
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8447ecc59177899775b8226cb90a0c3b8689f8ba

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Aug 25 14:44:12 2010 +0200

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

---

 dlls/explorerframe/tests/nstc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/explorerframe/tests/nstc.c b/dlls/explorerframe/tests/nstc.c
index 5142d84..d5dd5cd 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);




More information about the wine-cvs mailing list