Skip to content

Commit fbb098e

Browse files
authored
Fixed a crash that would sometimes occur when loading drives (#1778)
1 parent deaf5b1 commit fbb098e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Files/DataModels/SidebarPinnedModel.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public async Task AddItemToSidebar(string path)
8484
ex is ArgumentException // Pinned item was invalid
8585
|| ex is FileNotFoundException // Pinned item was deleted
8686
|| ex is System.Runtime.InteropServices.COMException // Pinned item's drive was ejected
87+
|| (uint)ex.HResult == 0x8007000F // The system cannot find the drive specified
8788
|| (uint)ex.HResult == 0x800700A1) // The specified path is invalid (usually an mtp device was disconnected)
8889
{
8990
Debug.WriteLine("Pinned item was invalid and will be removed from the file lines list soon: " + ex.Message);

0 commit comments

Comments
 (0)