From 6ee9a5e7185f0f519ea5ccf40260ead299ffdc8d Mon Sep 17 00:00:00 2001 From: Francis Beaudet Date: Sat, 1 May 1999 10:10:30 +0000 Subject: [PATCH] Fixed a little Drag and Drop bug. --- ole/ole2.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ole/ole2.c b/ole/ole2.c index 8533303fc71..ccb37be4696 100644 --- a/ole/ole2.c +++ b/ole/ole2.c @@ -1498,6 +1498,12 @@ static void OLEDD_TrackMouseMove( */ hwndNewTarget = WindowFromPoint(mousePos); + /* + * Every time, we re-initialize the effects passed to the + * IDropTarget to the effects allowed by the source. + */ + *trackerInfo->pdwEffect = trackerInfo->dwOKEffect; + /* * If we are hovering over the same target as before, send the * DragOver notification @@ -1521,7 +1527,7 @@ static void OLEDD_TrackMouseMove( trackerInfo->pdwEffect); } else -{ + { DropTargetNode* newDropTargetNode = 0; /*