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

Alexandre Julliard julliard at winehq.org
Tue Apr 12 15:35:16 CDT 2022


Module: wine
Branch: master
Commit: 9eff8911c3aa9ee066898b47e08a6ddc1b9f493b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=9eff8911c3aa9ee066898b47e08a6ddc1b9f493b

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Tue Apr 12 16:04:14 2022 +0800

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

CreateActCtxW() returns INVALID_HANDLE_VALUE on error.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/tests/actctx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/kernel32/tests/actctx.c b/dlls/kernel32/tests/actctx.c
index a91c46ddf89..ebe1bb86470 100644
--- a/dlls/kernel32/tests/actctx.c
+++ b/dlls/kernel32/tests/actctx.c
@@ -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__);




More information about the wine-cvs mailing list