ole32: Fix DROPEFFECT value in OLEDD_TrackStateChange.

This commit is contained in:
Piotr Caban 2014-03-01 14:46:42 +01:00 committed by Alexandre Julliard
parent 68d3a136f6
commit efbd52983a
1 changed files with 3 additions and 1 deletions

View File

@ -2264,7 +2264,8 @@ static void OLEDD_TrackStateChange(TrackerWindowInfo* trackerInfo)
IDropTarget_DragOver(trackerInfo->curDragTarget, IDropTarget_DragOver(trackerInfo->curDragTarget,
trackerInfo->dwKeyState, trackerInfo->dwKeyState,
trackerInfo->curMousePos, trackerInfo->curMousePos,
trackerInfo->pdwEffect); trackerInfo->pdwEffect);
*trackerInfo->pdwEffect &= trackerInfo->dwOKEffect;
} }
else else
{ {
@ -2306,6 +2307,7 @@ static void OLEDD_TrackStateChange(TrackerWindowInfo* trackerInfo)
trackerInfo->dwKeyState, trackerInfo->dwKeyState,
trackerInfo->curMousePos, trackerInfo->curMousePos,
trackerInfo->pdwEffect); trackerInfo->pdwEffect);
*trackerInfo->pdwEffect &= trackerInfo->dwOKEffect;
/* failed DragEnter() means invalid target */ /* failed DragEnter() means invalid target */
if (hr != S_OK) if (hr != S_OK)