From e46e095c22cc869eb7973af3947e125cde9da72e Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Sat, 20 Sep 2008 10:41:01 +0200 Subject: [PATCH] imm32/tests: Skip tests when IME support is not implemented. --- dlls/imm32/tests/imm32.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/imm32/tests/imm32.c b/dlls/imm32/tests/imm32.c index d0ced5f9215..72080924779 100644 --- a/dlls/imm32/tests/imm32.c +++ b/dlls/imm32/tests/imm32.c @@ -135,6 +135,7 @@ static HWND hwnd; static int init(void) { WNDCLASSEX wc; + HIMC imc; wc.cbSize = sizeof(WNDCLASSEX); wc.style = 0; @@ -158,6 +159,14 @@ static int init(void) { if (!hwnd) return 0; + imc = ImmGetContext(hwnd); + if (!imc) + { + skip("IME support not implemented\n"); + return 0; + } + ImmReleaseContext(hwnd, imc); + ShowWindow(hwnd, SW_SHOWNORMAL); UpdateWindow(hwnd); -- 2.11.4.GIT