kernel32/tests: Fix few context leaks.

This commit is contained in:
Nikolay Sivov 2009-12-18 01:36:55 +03:00 committed by Alexandre Julliard
parent 5d9fd1b716
commit 0fe54088bc
1 changed files with 3 additions and 2 deletions

View File

@ -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)