mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
imm32/tests: Skip tests when IME support is not implemented.
This commit is contained in:
parent
e9f5fbc419
commit
e46e095c22
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user