Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3a07b090
Commit
3a07b090
authored
Mar 28, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Cleanup ImmProcessKey variables and traces.
parent
5a6ed25f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
imm.c
dlls/imm32/imm.c
+12
-15
No files found.
dlls/imm32/imm.c
View file @
3a07b090
...
...
@@ -3025,27 +3025,24 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
* ImmProcessKey(IMM32.@)
* ( Undocumented, called from user32.dll )
*/
BOOL
WINAPI
ImmProcessKey
(
HWND
hwnd
,
HKL
hKL
,
UINT
vKey
,
LPARAM
lKeyData
,
DWORD
unknown
)
BOOL
WINAPI
ImmProcessKey
(
HWND
hwnd
,
HKL
hkl
,
UINT
vkey
,
LPARAM
lparam
,
DWORD
unknown
)
{
struct
imc
*
data
;
HIMC
imc
=
ImmGetContext
(
hwnd
);
struct
imc
*
imc
;
BYTE
state
[
256
];
BOOL
ret
;
TRACE
(
"%p %p %x %x %lx
\n
"
,
hwnd
,
hKL
,
vKey
,
(
UINT
)
lKeyData
,
unknown
);
TRACE
(
"hwnd %p, hkl %p, vkey %#x, lparam %#Ix, unknown %#lx
\n
"
,
hwnd
,
hkl
,
vkey
,
lparam
,
unknown
);
if
(
!
(
data
=
get_imc_data
(
imc
)))
return
FALSE
;
imc_select_hkl
(
data
,
hKL
);
if
(
!
data
->
ime
)
return
FALSE
;
if
(
!
(
imc
=
get_imc_data
(
ImmGetContext
(
hwnd
)
)))
return
FALSE
;
imc_select_hkl
(
imc
,
hkl
);
if
(
!
imc
->
ime
)
return
FALSE
;
GetKeyboardState
(
state
);
if
(
data
->
ime
->
pImeProcessKey
(
imc
,
vKey
,
lKeyData
,
state
))
{
data
->
lastVK
=
vKey
;
return
TRUE
;
}
GetKeyboardState
(
state
);
data
->
lastVK
=
VK_PROCESSKEY
;
return
FALSE
;
ret
=
imc
->
ime
->
pImeProcessKey
(
imc
->
handle
,
vkey
,
lparam
,
state
);
imc
->
lastVK
=
ret
?
vkey
:
VK_PROCESSKEY
;
return
ret
;
}
/***********************************************************************
...
...
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