Skip to content

Commit

Permalink
Fix: Fixed crash when dragging files from Gmail (#13528)
Browse files Browse the repository at this point in the history
  • Loading branch information
gave92 authored Oct 17, 2023
1 parent fa99e89 commit 987650a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,8 @@ public static async Task<IEnumerable<IStorageItemWithPath>> GetDraggedStorageIte
// https://learn.microsoft.com/windows/win32/shell/clipboard#cf_hdrop
if (packageView.Contains("FileDrop"))
{
var fileDropData = await packageView.GetDataAsync("FileDrop");
var fileDropData = await SafetyExtensions.IgnoreExceptions(
() => packageView.GetDataAsync("FileDrop").AsTask());
if (fileDropData is IRandomAccessStream stream)
{
stream.Seek(0);
Expand Down

0 comments on commit 987650a

Please sign in to comment.