From: Vijay Kiran Kamuju Subject: [PATCH 2/2] comctl32: Fixed rebar behaviour when there's capture and no drag Message-Id: <20191209162005.602-2-infyquest@gmail.com> Date: Mon, 9 Dec 2019 17:20:05 +0100 In-Reply-To: <20191209162005.602-1-infyquest@gmail.com> References: <20191209162005.602-1-infyquest@gmail.com> From: Andrew Shadura Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=14750 From: Andrew Shadura Signed-off-by: Vijay Kiran Kamuju --- 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