Module: wine Branch: master Commit: 8a4fe8e6e4bd5d2e9970ef75f39f8ac4f368c1d8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8a4fe8e6e4bd5d2e9970ef75f3...
Author: Byeong-Sik Jeon wjsqudtlr@gmail.com Date: Wed Nov 15 15:52:31 2006 +0900
user32: Update the edit control when the IME composition string is emptied.
---
dlls/user/edit.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/user/edit.c b/dlls/user/edit.c index 5b38b68..76f3e04 100644 --- a/dlls/user/edit.c +++ b/dlls/user/edit.c @@ -5335,7 +5335,7 @@ static void EDIT_GetCompositionStr(HWND
dwBufLen = ImmGetCompositionStringW(hIMC, GCS_COMPSTR, NULL, 0);
- if (dwBufLen <= 0) + if (dwBufLen < 0) { ImmReleaseContext(hwnd, hIMC); return; @@ -5349,7 +5349,8 @@ static void EDIT_GetCompositionStr(HWND return; }
- ImmGetCompositionStringW(hIMC, GCS_COMPSTR, lpCompStr, dwBufLen); + if (dwBufLen) + ImmGetCompositionStringW(hIMC, GCS_COMPSTR, lpCompStr, dwBufLen); lpCompStr[dwBufLen/sizeof(WCHAR)] = 0;
if (CompFlag & GCS_COMPATTR)