[PATCH 4/4] Fix few context leaks
Nikolay Sivov
bunglehead at gmail.com
Thu Dec 17 16:36:55 CST 2009
---
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)
--
1.5.6.5
--=-XfiX9+jgLTXI0XvUaZim--
More information about the wine-patches
mailing list