Commit Graph

82 Commits

Author SHA1 Message Date
Akihiro Sagawa d233a78295 imm32: Correctly return the size of the required output buffer.
This fixes a regression introduced by fd7cda93a3.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46851
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-19 08:50:55 +01:00
Nikolay Sivov fd7cda93a3 imm32: Fix output buffer length handling for no-conversion case of GCS_COMPSTR.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-11 19:12:41 +01:00
Michael Stefaniuc 0dde234e0e imm32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-06 17:27:59 +02:00
Akihiro Sagawa 4adfb1be29 user32: Send WM_IME_CHAR messages from DefWindowProc.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-16 21:48:49 +01:00
Akihiro Sagawa 4f14f706a6 imm32/tests: Add more WM_IME_CHAR message tests.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-16 21:48:49 +01:00
Akihiro Sagawa b8dc1e7cde winex11: Keep the result string in the IME UI window procedure.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-14 18:06:43 +01:00
Akihiro Sagawa 3955ce1e0a imm32/tests: Add more composition string tests.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-14 18:06:30 +01:00
Akihiro Sagawa c1dac18c6a imm32/tests: Add a skip message when composition string isn't available.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-14 18:05:32 +01:00
Francois Gouget a0a22397fd imm32/tests: A spelling fix in an ok() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-10 19:19:16 +01:00
Akihiro Sagawa 686369022d imm32: Set the default IME window title and styles as in native.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 10:43:13 +09:00
Akihiro Sagawa 716e9c93e4 imm32/tests: Add more default IME window tests with message-only window.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 23:34:27 +09:00
Akihiro Sagawa 911d269be8 user32: Create and destroy the default IME window implicitly.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 16:45:32 +09:00
Akihiro Sagawa ba2e025b94 imm32: Implement ImmDisableIME.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 22:54:03 +09:00
Akihiro Sagawa 77da0b8b4f imm32/tests: Add ImmDisableIME tests.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 22:53:53 +09:00
Francois Gouget 09a401e2a8 imm32/tests: Spelling fix.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-02 01:08:50 +09:00
Akihiro Sagawa 47043b9295 imm32/tests: Add more tests showing that the IME window is created after WM_NCCREATE.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:15:01 +09:00
Akihiro Sagawa da389f5fcc imm32/tests: Add tests showing the IME window is created if the first window is a child.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:14:59 +09:00
Akihiro Sagawa 451fd162b4 imm32/tests: Add tests showing that the IME window is created between WM_NCCREATE and WM_NCCALCSIZE.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:14:56 +09:00
Akihiro Sagawa 5152f4141a imm32/tests: Add tests for life cycle of default IME window.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 15:30:36 +09:00
Akihiro Sagawa 2cd81c149d imm32/tests: Terminate the thread cleanly.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 12:16:28 +09:00
Akihiro Sagawa 1fb30e1cab imm32/tests: Use WM_CLOSE instead of DestroyWindow().
DestroyWindow() call won't work across threads.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 12:16:25 +09:00
Akihiro Sagawa ba0e38b175 imm32/tests: Fix typo.
hwnd is a global variable, hWnd is a local variable. They're very confusable.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 12:16:18 +09:00
Aric Stewart 64c772dcc2 imm32: Messages from ImmGenerateMessage are sent not posted.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-01 23:17:49 +09:00
Piotr Caban 60b996ad4b imm32: Don't use functions that use graphics driver in THREAD_DETACH/PROCESS_DETACH. 2015-08-28 13:14:03 +09:00
Aric Stewart 5448acc37a imm32: Limit cross thread access to ImmSet* functions. 2015-02-26 21:53:05 +09:00
Aric Stewart fdf37fe744 imm32: Restrict cross-thread association and destruction. 2015-02-26 21:53:05 +09:00
Aric Stewart 455ca1adb0 imm32: Use thread data from target HWND. 2015-02-26 21:53:03 +09:00
Piotr Caban 3311684e6e imm32: Return FALSE on WM_MSIME_* messages in ImmIsUIMessage. 2014-10-29 20:30:59 +09:00
Frédéric Delanoy 2e5cb7aac8 Assorted spelling/grammar fixes. 2014-04-30 18:34:20 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Frédéric Delanoy 45eff32ad0 imm32/tests: Use BOOL type where appropriate. 2013-11-01 10:52:01 +01:00
André Hentschel 33018d393a imm32/tests: Fix tests compilation with __WINESRC__ defined. 2013-10-24 10:48:01 +02:00
Aric Stewart bd9e608133 imm32: ImmGetCandidateWindow should not return unset data. 2013-10-02 12:24:25 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Francois Gouget d3672524ed Assorted spelling fixes. 2013-10-01 19:09:08 +02:00
Aric Stewart cae71ef219 imm32: ImmGetDescriptionA return does not include NULL byte. 2013-09-27 18:14:47 +02:00
Aric Stewart 8b933495fb imm32: Fix ImmGetDescription behavior with a null HKL. 2013-09-18 22:23:09 +02:00
Qian Hong b4b428ee9e imm32: Validate input context in multiple IMC functions.
Both tests and fixes improved by Aric Stewart.
2013-09-18 22:23:09 +02:00
Francois Gouget 120e24431d imm32/tests: Fix a trailing '\n' in an ok() call. 2013-08-19 12:53:20 +02:00
Qian Hong af058929ca imm32/tests: Added tests for ImmDestroyContext. 2013-08-16 20:49:36 +02:00
Qian Hong b5b52371d1 imm32/tests: Added more IMC lock count tests. 2013-08-16 20:49:36 +02:00
Qian Hong 134935e714 imm32: Fixed IMCC implementation. 2013-08-16 20:49:36 +02:00
Qian Hong 1448d95fa4 imm32/tests: Added tests for ImmDestroyIMCC. 2013-08-16 20:49:34 +02:00
Qian Hong 7822398d27 imm32/tests: Added more IMCC lock count tests. 2013-08-16 19:17:45 +02:00
Qian Hong 00289d5b91 imm32: Fixed ImmUnlockIMCC. 2013-08-01 12:17:16 +02:00
Qian Hong 2214381657 imm32/tests: Added test for IMCC lock count. 2013-08-01 12:17:14 +02:00
Qian Hong 44f6006738 imm32: Fixed ImmUnlockIMC. 2013-08-01 12:17:12 +02:00
Qian Hong 0f14a77f5d imm32/tests: Added test for IMC lock count. 2013-08-01 12:17:10 +02:00
Aric Stewart 83e233c97d imm32/tests: Show behavior with VK_PROCESSKEY in relation to PeekMessage. 2013-03-28 18:56:01 +01:00
Aric Stewart 203b4fbff0 imm32/tests: Test showing that communication to the IME window is done via SendMessage. 2012-11-21 15:19:49 +01:00