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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
2 deletions
-
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; |
|
|
|