Qian Hong : imm32: Fixed ImmUnlockIMC.
Alexandre Julliard
julliard at winehq.org
Thu Aug 1 14:25:45 CDT 2013
Module: wine
Branch: master
Commit: 44f60067381245ed11162d8796db0dbd96f8ec3b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=44f60067381245ed11162d8796db0dbd96f8ec3b
Author: Qian Hong <qhong at codeweavers.com>
Date: Thu Aug 1 14:32:35 2013 +0800
imm32: Fixed ImmUnlockIMC.
---
dlls/imm32/imm.c | 5 +++--
dlls/imm32/tests/imm32.c | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 62f4b71..284d49e 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -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;
}
/***********************************************************************
diff --git a/dlls/imm32/tests/imm32.c b/dlls/imm32/tests/imm32.c
index 7313854..0d4cb5c 100644
--- a/dlls/imm32/tests/imm32.c
+++ b/dlls/imm32/tests/imm32.c
@@ -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);
}
More information about the wine-cvs
mailing list