[COMCTL32] Updown Suppress the NM_RELEASEDCAPTURE notification CORE-14365
authorJoachim Henze <Joachim.Henze@reactos.org>
Fri, 20 Sep 2019 18:13:09 +0000 (20:13 +0200)
committerJoachim Henze <Joachim.Henze@reactos.org>
Fri, 20 Sep 2019 18:13:09 +0000 (20:13 +0200)
This fixes a strange toggle-back-effect in 'Zeckensacks Glide Wrapper 0.84c'
by importing Wine commit
https://source.winehq.org/git/wine.git/commit/9dbe886e3ffd1c38a89f9cf256b7d172e408ec58
Thanks to patches author Akihiro Sagawa <sagawa.aki@gmail.com>

dll/win32/comctl32/updown.c

index 8dec7a4..6b328ff 100644 (file)
@@ -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);
-       ReleaseCapture();
-    }
+    if (GetCapture() == infoPtr->Self)
+        ReleaseCapture();
 
     infoPtr->Flags &= ~FLAG_PRESSED;
     InvalidateRect (infoPtr->Self, NULL, FALSE);