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
bfb7799b
Commit
bfb7799b
authored
Apr 30, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
May 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Ignore some messages in ImmTranslateMessage.
parent
4b621dd9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
imm.c
dlls/imm32/imm.c
+1
-0
imm32.c
dlls/imm32/tests/imm32.c
+2
-2
No files found.
dlls/imm32/imm.c
View file @
bfb7799b
...
@@ -3124,6 +3124,7 @@ BOOL WINAPI ImmTranslateMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpar
...
@@ -3124,6 +3124,7 @@ BOOL WINAPI ImmTranslateMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpar
TRACE
(
"hwnd %p, msg %#x, wparam %#Ix, lparam %#Ix
\n
"
,
hwnd
,
msg
,
wparam
,
lparam
);
TRACE
(
"hwnd %p, msg %#x, wparam %#Ix, lparam %#Ix
\n
"
,
hwnd
,
msg
,
wparam
,
lparam
);
if
(
msg
<
WM_KEYDOWN
||
msg
>
WM_KEYUP
)
return
FALSE
;
if
(
!
(
data
=
get_imc_data
(
ImmGetContext
(
hwnd
)
)))
return
FALSE
;
if
(
!
(
data
=
get_imc_data
(
ImmGetContext
(
hwnd
)
)))
return
FALSE
;
if
(
!
(
ime
=
imc_select_ime
(
data
)))
return
FALSE
;
if
(
!
(
ime
=
imc_select_ime
(
data
)))
return
FALSE
;
if
(
data
->
lastVK
==
VK_PROCESSKEY
)
return
FALSE
;
if
(
data
->
lastVK
==
VK_PROCESSKEY
)
return
FALSE
;
...
...
dlls/imm32/tests/imm32.c
View file @
bfb7799b
...
@@ -7082,12 +7082,12 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
...
@@ -7082,12 +7082,12 @@ static void test_ImmTranslateMessage( BOOL kbd_char_first )
ok_ret
(
2
,
ImmProcessKey
(
hwnd
,
expect_ime
,
'Q'
,
MAKELONG
(
2
,
0xc010
),
0
)
);
ok_ret
(
2
,
ImmProcessKey
(
hwnd
,
expect_ime
,
'Q'
,
MAKELONG
(
2
,
0xc010
),
0
)
);
ok_ret
(
0
,
ImmTranslateMessage
(
hwnd
,
0
,
0
,
0
)
);
ok_ret
(
0
,
ImmTranslateMessage
(
hwnd
,
0
,
0
,
0
)
);
todo_wine
ok_ret
(
'Q'
,
ImmGetVirtualKey
(
hwnd
)
);
ok_ret
(
'Q'
,
ImmGetVirtualKey
(
hwnd
)
);
ok_seq
(
process_key_seq
);
ok_seq
(
process_key_seq
);
ok_ret
(
0
,
ImmTranslateMessage
(
hwnd
,
WM_KEYDOWN
,
'Q'
,
MAKELONG
(
2
,
0x10
)
)
);
ok_ret
(
0
,
ImmTranslateMessage
(
hwnd
,
WM_KEYDOWN
,
'Q'
,
MAKELONG
(
2
,
0x10
)
)
);
ok_ret
(
VK_PROCESSKEY
,
ImmGetVirtualKey
(
hwnd
)
);
ok_ret
(
VK_PROCESSKEY
,
ImmGetVirtualKey
(
hwnd
)
);
todo_wine
ok_seq
(
to_ascii_ex_0
);
ok_seq
(
to_ascii_ex_0
);
ok_ret
(
0
,
ImmTranslateMessage
(
hwnd
,
WM_KEYUP
,
'Q'
,
MAKELONG
(
2
,
0xc010
)
)
);
ok_ret
(
0
,
ImmTranslateMessage
(
hwnd
,
WM_KEYUP
,
'Q'
,
MAKELONG
(
2
,
0xc010
)
)
);
ok_seq
(
empty_sequence
);
ok_seq
(
empty_sequence
);
...
...
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