Commit 3d3dc23a authored by Huw D M Davies's avatar Huw D M Davies Committed by Alexandre Julliard

Check to see whether any ancestor windows are drop targets.

parent d0f8bfd7
......@@ -1862,8 +1862,12 @@ static void OLEDD_TrackMouseMove(
/*
* Find-out if there is a drag target under the mouse
*/
newDropTargetNode = OLEDD_FindDropTarget(hwndNewTarget);
HWND nexttar = hwndNewTarget;
do {
newDropTargetNode = OLEDD_FindDropTarget(nexttar);
} while (!newDropTargetNode && (nexttar = GetParent(nexttar)) != 0);
if(nexttar) hwndNewTarget = nexttar;
trackerInfo->curDragTargetHWND = hwndNewTarget;
trackerInfo->curDragTarget = newDropTargetNode ? newDropTargetNode->dropTarget : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment