Browse Source

Fix 13538: Update method Drop of DropTarget.cs (#13542)

Update method Drop of DropTarget.cs
pull/13440/merge
Leaf Shi 2 days ago
committed by GitHub
parent
commit
e79173eb3b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/System.Windows.Forms/System/Windows/Forms/OLE/DropTarget.cs

6
src/System.Windows.Forms/System/Windows/Forms/OLE/DropTarget.cs

@ -212,8 +212,6 @@ internal unsafe class DropTarget : OleIDropTarget.Interface, IManagedWrapper<Ole
}
}
*pdwEffect = DROPEFFECT.DROPEFFECT_NONE;
try
{
if (CreateDragEventArgs(pDataObj, grfKeyState, pt, *pdwEffect) is { } dragEvent)
@ -227,6 +225,10 @@ internal unsafe class DropTarget : OleIDropTarget.Interface, IManagedWrapper<Ole
result = HandleOnDragDrop(dragEvent, asyncCapability, pdwEffect);
asyncCapability = null;
}
else
{
*pdwEffect = DROPEFFECT.DROPEFFECT_NONE;
}
_lastEffect = DragDropEffects.None;
_lastDataObject = null;

Loading…
Cancel
Save