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
f6cf1d44
Commit
f6cf1d44
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: Rewrite ImmInternalSendIMEMessage helper as imc_send_message.
parent
12b5da66
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
imm.c
dlls/imm32/imm.c
+5
-10
No files found.
dlls/imm32/imm.c
View file @
f6cf1d44
...
@@ -744,14 +744,11 @@ static void ImmInternalPostIMEMessage( struct imc *data, UINT msg, WPARAM wParam
...
@@ -744,14 +744,11 @@ static void ImmInternalPostIMEMessage( struct imc *data, UINT msg, WPARAM wParam
PostMessageW
(
target
,
msg
,
wParam
,
lParam
);
PostMessageW
(
target
,
msg
,
wParam
,
lParam
);
}
}
/* for sending messages as the IME */
static
void
imc_send_message
(
struct
imc
*
imc
,
TRANSMSG
*
message
)
static
void
ImmInternalSendIMEMessage
(
struct
imc
*
data
,
UINT
msg
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
HWND
target
=
GetFocus
();
HWND
target
;
if
(
!
target
)
if
(
!
(
target
=
GetFocus
())
&&
!
(
target
=
imc
->
IMC
.
hWnd
))
return
;
SendMessageW
(
data
->
IMC
.
hWnd
,
msg
,
wParam
,
lParam
);
SendMessageW
(
target
,
message
->
message
,
message
->
wParam
,
message
->
lParam
);
else
SendMessageW
(
target
,
msg
,
wParam
,
lParam
);
}
}
static
LRESULT
ImmInternalSendIMENotify
(
struct
imc
*
data
,
WPARAM
notify
,
LPARAM
lParam
)
static
LRESULT
ImmInternalSendIMENotify
(
struct
imc
*
data
,
WPARAM
notify
,
LPARAM
lParam
)
...
@@ -3014,9 +3011,7 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
...
@@ -3014,9 +3011,7 @@ BOOL WINAPI ImmGenerateMessage(HIMC hIMC)
data
->
IMC
.
dwNumMsgBuf
=
0
;
data
->
IMC
.
dwNumMsgBuf
=
0
;
lpTransMsg
=
ImmLockIMCC
(
hMsgBuf
);
lpTransMsg
=
ImmLockIMCC
(
hMsgBuf
);
for
(
i
=
0
;
i
<
dwNumMsgBuf
;
i
++
)
for
(
i
=
0
;
i
<
dwNumMsgBuf
;
i
++
)
imc_send_message
(
data
,
lpTransMsg
+
i
);
ImmInternalSendIMEMessage
(
data
,
lpTransMsg
[
i
].
message
,
lpTransMsg
[
i
].
wParam
,
lpTransMsg
[
i
].
lParam
);
ImmUnlockIMCC
(
hMsgBuf
);
ImmUnlockIMCC
(
hMsgBuf
);
ImmDestroyIMCC
(
hMsgBuf
);
ImmDestroyIMCC
(
hMsgBuf
);
}
}
...
...
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