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
b4a5556d
Commit
b4a5556d
authored
Aug 05, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 15, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Always use original parameter values in dispatch_send_message.
parent
cdcd773e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
message.c
dlls/user32/message.c
+7
-3
No files found.
dlls/user32/message.c
View file @
b4a5556d
...
...
@@ -588,7 +588,7 @@ LRESULT WINAPI SendMessageTimeoutA( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
}
static
LRESULT
dispatch_send_message
(
struct
win_proc_params
*
params
)
static
LRESULT
dispatch_send_message
(
struct
win_proc_params
*
params
,
WPARAM
wparam
,
LPARAM
lparam
)
{
struct
ntuser_thread_info
*
thread_info
=
NtUserGetThreadInfo
();
INPUT_MESSAGE_SOURCE
prev_source
=
thread_info
->
msg_source
;
...
...
@@ -596,6 +596,10 @@ static LRESULT dispatch_send_message( struct win_proc_params *params )
static
const
INPUT_MESSAGE_SOURCE
msg_source_unavailable
=
{
IMDT_UNAVAILABLE
,
IMO_UNAVAILABLE
};
/* params may contain arguments modified by wow, use original parameters instead */
params
->
wparam
=
wparam
;
params
->
lparam
=
lparam
;
thread_info
->
recursion_count
++
;
params
->
result
=
&
retval
;
...
...
@@ -621,7 +625,7 @@ LRESULT WINAPI SendMessageW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
params
.
hwnd
=
0
;
retval
=
NtUserMessageCall
(
hwnd
,
msg
,
wparam
,
lparam
,
&
params
,
NtUserSendMessage
,
FALSE
);
if
(
params
.
hwnd
)
retval
=
dispatch_send_message
(
&
params
);
if
(
params
.
hwnd
)
retval
=
dispatch_send_message
(
&
params
,
wparam
,
lparam
);
return
retval
;
}
...
...
@@ -643,7 +647,7 @@ LRESULT WINAPI SendMessageA( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
params
.
hwnd
=
0
;
retval
=
NtUserMessageCall
(
hwnd
,
msg
,
wparam
,
lparam
,
&
params
,
NtUserSendMessage
,
TRUE
);
if
(
params
.
hwnd
)
retval
=
dispatch_send_message
(
&
params
);
if
(
params
.
hwnd
)
retval
=
dispatch_send_message
(
&
params
,
wparam
,
lparam
);
return
retval
;
}
...
...
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