Akihiro Sagawa : comctl32/updown: Suppress the NM_RELEASEDCAPTURE notification.
Alexandre Julliard
julliard at winehq.org
Mon Apr 20 15:01:47 CDT 2020
Module: wine
Branch: oldstable
Commit: 17c72ce2ca69c57e81519a116c4287ac1207cf0b
URL: https://source.winehq.org/git/wine.git/?a=commit;h=17c72ce2ca69c57e81519a116c4287ac1207cf0b
Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date: Sun Aug 25 19:27:04 2019 +0900
comctl32/updown: Suppress the NM_RELEASEDCAPTURE notification.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47427
Signed-off-by: Akihiro Sagawa <sagawa.aki at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 9dbe886e3ffd1c38a89f9cf256b7d172e408ec58)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/comctl32/tests/updown.c | 4 ++--
dlls/comctl32/updown.c | 8 +-------
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/dlls/comctl32/tests/updown.c b/dlls/comctl32/tests/updown.c
index e48a868d3e..e7ceeffd4c 100644
--- a/dlls/comctl32/tests/updown.c
+++ b/dlls/comctl32/tests/updown.c
@@ -949,7 +949,7 @@ static void test_updown_pos_notifications(void)
expect(result, 0);
ok_sequence(sequences, PARENT_SEQ_INDEX, test_updown_pos_notifications_seq,
- "test updown to parent notify (vertical)", TRUE);
+ "test updown to parent notify (vertical)", FALSE);
DestroyWindow(updown);
@@ -968,7 +968,7 @@ static void test_updown_pos_notifications(void)
expect(result, 0);
ok_sequence(sequences, PARENT_SEQ_INDEX, test_updown_pos_notifications_horz_seq,
- "test updown to parent notify (horizontal)", TRUE);
+ "test updown to parent notify (horizontal)", FALSE);
DestroyWindow(updown);
}
diff --git a/dlls/comctl32/updown.c b/dlls/comctl32/updown.c
index 8dec7a4807..c748a914d8 100644
--- a/dlls/comctl32/updown.c
+++ b/dlls/comctl32/updown.c
@@ -781,14 +781,8 @@ static BOOL UPDOWN_CancelMode (UPDOWN_INFO *infoPtr)
KillTimer (infoPtr->Self, TIMER_ACCEL);
KillTimer (infoPtr->Self, TIMER_AUTOPRESS);
- if (GetCapture() == infoPtr->Self) {
- NMHDR hdr;
- hdr.hwndFrom = infoPtr->Self;
- hdr.idFrom = GetWindowLongPtrW (infoPtr->Self, GWLP_ID);
- hdr.code = NM_RELEASEDCAPTURE;
- SendMessageW(infoPtr->Notify, WM_NOTIFY, hdr.idFrom, (LPARAM)&hdr);
+ if (GetCapture() == infoPtr->Self)
ReleaseCapture();
- }
infoPtr->Flags &= ~FLAG_PRESSED;
InvalidateRect (infoPtr->Self, NULL, FALSE);
More information about the wine-cvs
mailing list