From e9df3176f75b1269144a5721d18ab310522e9efd Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Sat, 23 Apr 2022 07:18:38 +0900 Subject: [PATCH] [IMM32_APITEST] himc: Show class on CreateWindow failure (#4466) Display the window class name on failure of CreateWindow function call. CORE-11700 --- modules/rostests/apitests/imm32/himc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/rostests/apitests/imm32/himc.c b/modules/rostests/apitests/imm32/himc.c index d2e7104ba24..38ad975fcc9 100644 --- a/modules/rostests/apitests/imm32/himc.c +++ b/modules/rostests/apitests/imm32/himc.c @@ -173,7 +173,7 @@ static void Test2(void) LPCSTR pszClass = apszClasses[i]; hwnd = CreateWindowA(pszClass, NULL, WS_VISIBLE, 0, 0, 0, 0, NULL, NULL, GetModuleHandle(NULL), NULL); - ok(hwnd != NULL, "CreateWindow failed\n"); + ok(hwnd != NULL, "CreateWindow(%s) failed\n", pszClass); hIMC = ImmGetContext(hwnd);