user32-Mouse_Message_Hwnd: Avoid adding trailing whitespace.

Spotted by Dmitry Timoshkov.
This commit is contained in:
Zebediah Figura 2022-04-12 17:25:17 -05:00
parent 53fb22354e
commit 1c911ccb63

View File

@ -1,4 +1,4 @@
From 613c51cb67f5ecd654cfd32478b94d9a739856e2 Mon Sep 17 00:00:00 2001
From 7e23fd15f7cd8f4a3d59342c2489243b4f79d1fa Mon Sep 17 00:00:00 2001
From: Dmitry Timoshkov <dmitry@codeweavers.com>
Date: Tue, 25 Nov 2014 20:31:58 +0100
Subject: [PATCH] user32: Try harder to find a target for mouse messages
@ -6,11 +6,11 @@ Subject: [PATCH] user32: Try harder to find a target for mouse messages
---
dlls/user32/message.c | 1 -
dlls/user32/tests/input.c | 4 ++--
dlls/win32u/message.c | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
dlls/win32u/message.c | 2 +-
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/dlls/user32/message.c b/dlls/user32/message.c
index 0b4d4ecc603..a53889afc37 100644
index 9170e919292..ed72fb81fe0 100644
--- a/dlls/user32/message.c
+++ b/dlls/user32/message.c
@@ -592,7 +592,6 @@ BOOL process_rawinput_message( MSG *msg, UINT hw_id, const struct hardware_msg_d
@ -22,7 +22,7 @@ index 0b4d4ecc603..a53889afc37 100644
* SendMessageTimeoutW (USER32.@)
*/
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index d7520459c6d..0969c41edcb 100644
index 14641591bff..2bef3437109 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -3466,8 +3466,8 @@ static void test_Input_mouse(void)
@ -37,20 +37,18 @@ index d7520459c6d..0969c41edcb 100644
/* click on HTTRANSPARENT top-level window that belongs to other thread */
diff --git a/dlls/win32u/message.c b/dlls/win32u/message.c
index 8d32eaf2f2d..ff6884ca364 100644
index 9479595ae53..d602a7f3974 100644
--- a/dlls/win32u/message.c
+++ b/dlls/win32u/message.c
@@ -1400,8 +1400,8 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
else
@@ -1401,7 +1401,7 @@ static BOOL process_mouse_message( MSG *msg, UINT hw_id, ULONG_PTR extra_info, H
{
HWND orig = msg->hwnd;
-
- msg->hwnd = window_from_point( msg->hwnd, msg->pt, &hittest );
+
+ msg->hwnd = window_from_point( 0, msg->pt, &hittest );
if (!msg->hwnd) /* As a heuristic, try the next window if it's the owner of orig */
{
HWND next = get_window_relative( orig, GW_HWNDNEXT );
--
2.35.1
2.34.1