Skip to content

Commit 987650a

Browse files
authored
Fix: Fixed crash when dragging files from Gmail (#13528)
1 parent fa99e89 commit 987650a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,8 @@ public static async Task<IEnumerable<IStorageItemWithPath>> GetDraggedStorageIte
780780
// https://learn.microsoft.com/windows/win32/shell/clipboard#cf_hdrop
781781
if (packageView.Contains("FileDrop"))
782782
{
783-
var fileDropData = await packageView.GetDataAsync("FileDrop");
783+
var fileDropData = await SafetyExtensions.IgnoreExceptions(
784+
() => packageView.GetDataAsync("FileDrop").AsTask());
784785
if (fileDropData is IRandomAccessStream stream)
785786
{
786787
stream.Seek(0);

0 commit comments

Comments
 (0)