Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ac9c3ef5
Commit
ac9c3ef5
authored
Aug 12, 2022
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/edit: Let DefWindowProcA/W() handle WM_IME_CHAR.
So that WM_IME_CHAR will be converted to WM_CHAR in DefWindowProcA/W(). Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
parent
89ee2b02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
edit.c
dlls/user32/edit.c
+0
-14
msg.c
dlls/user32/tests/msg.c
+2
-2
No files found.
dlls/user32/edit.c
View file @
ac9c3ef5
...
...
@@ -4976,20 +4976,6 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
}
break
;
case
WM_IME_CHAR
:
if
(
!
unicode
)
{
WCHAR
charW
;
CHAR
strng
[
2
];
strng
[
0
]
=
wParam
>>
8
;
strng
[
1
]
=
wParam
&
0xff
;
if
(
strng
[
0
])
MultiByteToWideChar
(
CP_ACP
,
0
,
strng
,
2
,
&
charW
,
1
);
else
MultiByteToWideChar
(
CP_ACP
,
0
,
&
strng
[
1
],
1
,
&
charW
,
1
);
result
=
EDIT_WM_Char
(
es
,
charW
);
break
;
}
/* fall through */
case
WM_CHAR
:
{
WCHAR
charW
;
...
...
dlls/user32/tests/msg.c
View file @
ac9c3ef5
...
...
@@ -12271,7 +12271,7 @@ static DWORD WINAPI test_edit_ime_messages(void *unused_arg)
flush_sequence
();
SendMessageA
(
hwnd
,
WM_IME_CHAR
,
'0'
,
1
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
ok_sequence
(
edit_wm_ime_char_seq
,
"WM_IME_CHAR"
,
TRU
E
);
ok_sequence
(
edit_wm_ime_char_seq
,
"WM_IME_CHAR"
,
FALS
E
);
/* Test IME messages when EIMES_GETCOMPSTRATONCE is set */
lr
=
SendMessageA
(
hwnd
,
EM_SETIMESTATUS
,
EMSIS_COMPOSITIONSTRING
,
EIMES_GETCOMPSTRATONCE
);
...
...
@@ -12292,7 +12292,7 @@ static DWORD WINAPI test_edit_ime_messages(void *unused_arg)
flush_sequence
();
SendMessageA
(
hwnd
,
WM_IME_CHAR
,
'0'
,
1
);
while
(
PeekMessageA
(
&
msg
,
0
,
0
,
0
,
PM_REMOVE
))
DispatchMessageA
(
&
msg
);
ok_sequence
(
edit_wm_ime_char_seq
,
"WM_IME_CHAR"
,
TRU
E
);
ok_sequence
(
edit_wm_ime_char_seq
,
"WM_IME_CHAR"
,
FALS
E
);
ImmReleaseContext
(
hwnd
,
himc
);
DestroyWindow
(
hwnd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment