imm32: Fixed ImmUnlockIMCC.

This commit is contained in:
Qian Hong 2013-08-01 14:32:54 +08:00 committed by Alexandre Julliard
parent 2214381657
commit 00289d5b91
2 changed files with 4 additions and 3 deletions

View File

@ -2665,7 +2665,8 @@ BOOL WINAPI ImmUnlockIMCC(HIMCC imcc)
IMCCInternal *internal;
internal = imcc;
internal->dwLock --;
if (internal->dwLock)
internal->dwLock --;
return (internal->dwLock!=0);
}

View File

@ -728,9 +728,9 @@ static void test_ImmGetIMCCLockCount(void)
count = ImmGetIMCCLockCount(imcc);
ok(count == 0, "expect 0, returned %d\n", count);
ret = ImmUnlockIMCC(imcc);
todo_wine ok(ret == FALSE, "expect FALSE, ret %d\n", ret);
ok(ret == FALSE, "expect FALSE, ret %d\n", ret);
count = ImmGetIMCCLockCount(imcc);
todo_wine ok(count == 0, "expect 0, returned %d\n", count);
ok(count == 0, "expect 0, returned %d\n", count);
ImmDestroyIMCC(imcc);
}