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
10174320
Commit
10174320
authored
Apr 03, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 04, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imm32: Simplify control flow in ImmTranslateMessage.
parent
4445fd14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
imm.c
dlls/imm32/imm.c
+4
-6
No files found.
dlls/imm32/imm.c
View file @
10174320
...
...
@@ -3033,6 +3033,7 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
GetKeyboardState
(
state
);
scancode
=
lKeyData
>>
0x10
&
0xff
;
uVirtKey
=
data
->
lastVK
;
list
=
calloc
(
list_count
,
sizeof
(
TRANSMSG
)
+
sizeof
(
DWORD
)
);
list
->
uMsgCount
=
list_count
;
...
...
@@ -3047,15 +3048,12 @@ BOOL WINAPI ImmTranslateMessage(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lKeyD
ToUnicodeEx
(
data
->
lastVK
,
scancode
,
state
,
&
chr
,
1
,
0
,
GetKeyboardLayout
(
0
));
uVirtKey
=
MAKELONG
(
data
->
lastVK
,
chr
);
}
else
uVirtKey
=
data
->
lastVK
;
msg_count
=
ime
->
pImeToAsciiEx
(
uVirtKey
,
scancode
,
state
,
list
,
0
,
data
->
handle
);
TRACE
(
"%i messages generated
\n
"
,
msg_count
);
if
(
msg_count
&&
msg_count
<=
list_count
)
for
(
i
=
0
;
i
<
msg_count
;
i
++
)
imc_post_message
(
data
,
list
->
TransMsg
+
i
);
else
if
(
msg_count
>
list_count
)
ImmGenerateMessage
(
data
->
handle
);
if
(
msg_count
>
list_count
)
ImmGenerateMessage
(
data
->
handle
);
else
for
(
i
=
0
;
i
<
msg_count
;
i
++
)
imc_post_message
(
data
,
list
->
TransMsg
+
i
);
free
(
list
);
...
...
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