Commit 9eff8911 authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

kernel32/tests: Check against INVALID_HANDLE_VALUE for CreateActCtxW() return values.

CreateActCtxW() returns INVALID_HANDLE_VALUE on error. Signed-off-by: 's avatarZhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4782bc3c
......@@ -3650,7 +3650,7 @@ static void test_manifest_in_module(void)
ctx.lpResourceName = (LPWSTR)124;
ctx.hModule = GetModuleHandleW(NULL);
handle = CreateActCtxW(&ctx);
ok(handle != 0, "CreateActCtx error %lu\n", GetLastError());
ok(handle != INVALID_HANDLE_VALUE, "CreateActCtx error %lu\n", GetLastError());
test_basic_info(handle, __LINE__);
test_detailed_info(handle, &detailed_info3, __LINE__);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment