Nikolay Sivov : kernel32/tests: Fix few context leaks.

Alexandre Julliard julliard at winehq.org
Fri Dec 18 10:49:08 CST 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Fri Dec 18 01:36:55 2009 +0300

kernel32/tests: Fix few context leaks.

---

 dlls/kernel32/tests/actctx.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/tests/actctx.c b/dlls/kernel32/tests/actctx.c
index 4b84c58..8f51dfb 100644
--- a/dlls/kernel32/tests/actctx.c
+++ b/dlls/kernel32/tests/actctx.c
@@ -869,7 +869,7 @@ static void test_basic_info(HANDLE handle)
     SIZE_T size;
     BOOL b;
 
-    b = pQueryActCtxW(0, handle, NULL,
+    b = pQueryActCtxW(QUERY_ACTCTX_FLAG_NO_ADDREF, handle, NULL,
                           ActivationContextBasicInformation, &basic,
                           sizeof(basic), &size);
 
@@ -878,7 +878,8 @@ static void test_basic_info(HANDLE handle)
     ok (basic.dwFlags == 0, "unexpected flags %x\n",basic.dwFlags);
     ok (basic.hActCtx == handle, "unexpected handle\n");
 
-    b = pQueryActCtxW(QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX, handle, NULL,
+    b = pQueryActCtxW(QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX |
+                      QUERY_ACTCTX_FLAG_NO_ADDREF, handle, NULL,
                           ActivationContextBasicInformation, &basic,
                           sizeof(basic), &size);
     if (handle)




More information about the wine-cvs mailing list