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

CreateActCtxW() returns INVALID_HANDLE_VALUE on error.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2022-04-12 16:04:14 +08:00 committed by Alexandre Julliard
parent 4782bc3c1a
commit 9eff8911c3

View file

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