Commit 44f60067 authored by Qian Hong's avatar Qian Hong Committed by Alexandre Julliard

imm32: Fixed ImmUnlockIMC.

parent 0f14a77f
......@@ -2606,8 +2606,9 @@ LPINPUTCONTEXT WINAPI ImmLockIMC(HIMC hIMC)
BOOL WINAPI ImmUnlockIMC(HIMC hIMC)
{
InputContextData *data = hIMC;
data->dwLock--;
return (data->dwLock!=0);
if (data->dwLock)
data->dwLock--;
return TRUE;
}
/***********************************************************************
......
......@@ -702,13 +702,13 @@ static void test_ImmGetIMCLockCount(void)
count = ImmGetIMCLockCount(imc);
ok(count == 1, "expect 1, returned %d\n", count);
ret = ImmUnlockIMC(imc);
todo_wine ok(ret == TRUE, "expect TRUE, ret %d\n", ret);
ok(ret == TRUE, "expect TRUE, ret %d\n", ret);
count = ImmGetIMCLockCount(imc);
ok(count == 0, "expect 0, returned %d\n", count);
ret = ImmUnlockIMC(imc);
ok(ret == TRUE, "expect TRUE, ret %d\n", ret);
count = ImmGetIMCLockCount(imc);
todo_wine ok(count == 0, "expect 0, returned %d\n", count);
ok(count == 0, "expect 0, returned %d\n", count);
ImmDestroyContext(imc);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment