Nikolay Sivov : explorerframe/tests: Initialize hit test point before first use (Valgrind).
Alexandre Julliard
julliard at winehq.org
Mon Jan 31 11:26:12 CST 2011
Module: wine
Branch: master
Commit: 5f26248a39a9c61f4dcafd53fcf410083dbcfeba
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f26248a39a9c61f4dcafd53fcf410083dbcfeba
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sat Jan 29 11:26:59 2011 +0300
explorerframe/tests: Initialize hit test point before first use (Valgrind).
---
dlls/explorerframe/tests/nstc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/explorerframe/tests/nstc.c b/dlls/explorerframe/tests/nstc.c
index 2022828..df69a1a 100644
--- a/dlls/explorerframe/tests/nstc.c
+++ b/dlls/explorerframe/tests/nstc.c
@@ -1611,6 +1611,7 @@ static void test_basics(void)
ok(hr == E_POINTER, "Got 0x%08x\n", hr);
psi = (void*)0xdeadbeef;
+ pt.x = pt.y = 0;
hr = INameSpaceTreeControl_HitTest(pnstc, &pt, &psi);
ok(hr == S_FALSE, "Got 0x%08x\n", hr);
ok(psi == NULL, "Got psi %p\n", psi);
@@ -1621,7 +1622,6 @@ static void test_basics(void)
ok(hr == S_OK, "Got 0x%08x\n", hr);
process_msgs();
- pt.x = pt.y = 0;
hr = INameSpaceTreeControl_HitTest(pnstc, &pt, &psi);
ok(hr == S_OK, "Got 0x%08x\n", hr);
if(SUCCEEDED(hr))
More information about the wine-cvs
mailing list