Skip to content

Commit 53abcc1

Browse files
committed
chore: Apply suggestion
1 parent 97378a2 commit 53abcc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uno.UI.Runtime.Skia.Win32/ApplicationMode/DataTransfer/DragDrop/Win32DragDropExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ unsafe HRESULT IDropTarget.Interface.Drop(IDataObject* dataObject, MODIFIERKEYS_
218218
var dibFormat = formatEtcList[dibFormatIndex];
219219
// Try to get the DIB data directly
220220
var hResult = dataObject->GetData(dibFormat, out STGMEDIUM dibMedium);
221-
if (hResult.Succeeded && dibMedium.u.hGlobal != IntPtr.Zero)
221+
if (hResult.Succeeded && dibMedium.tymed == TYMED.TYMED_HGLOBAL && dibMedium.u.hGlobal != IntPtr.Zero)
222222
{
223223
try
224224
{

0 commit comments

Comments
 (0)