[PATCH 2/2] comctl32: Fixed rebar behaviour when there's capture and no drag
Vijay Kiran Kamuju
infyquest at gmail.com
Mon Dec 9 10:20:05 CST 2019
From: Andrew Shadura <bugzilla at tut.by>
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=14750
From: Andrew Shadura <bugzilla at tut.by>
Signed-off-by: Vijay Kiran Kamuju <infyquest at gmail.com>
---
dlls/comctl32/rebar.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index 6bca2f1818..92384ec506 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -3120,7 +3120,15 @@ REBAR_MouseMove (REBAR_INFO *infoPtr, LPARAM lParam)
int yPtMove = (infoPtr->dwStyle & CCS_VERT ? ptMove.x : ptMove.y);
if (GetCapture() != infoPtr->hwndSelf)
- ERR("We are dragging but haven't got capture?!?\n");
+ {
+ if (infoPtr->fStatus & BEGIN_DRAG_ISSUED)
+ {
+ REBAR_Notify_NMREBAR (infoPtr, infoPtr->iGrabbedBand, RBN_ENDDRAG);
+ infoPtr->fStatus &= ~BEGIN_DRAG_ISSUED;
+ }
+ infoPtr->iGrabbedBand = -1;
+ return 0;
+ }
band = REBAR_GetBand(infoPtr, infoPtr->iGrabbedBand);
--
2.21.0
More information about the wine-devel
mailing list