Skip to content

Commit 38b2850

Browse files
committed
Improve documents
1 parent cc57027 commit 38b2850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Flow.Launcher.Infrastructure/Image/ThumbnailReader.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ private static unsafe HBITMAP GetHBitmap(string fileName, int width, int height,
7979
}
8080
catch (COMException)
8181
{
82-
// Fallback to IconOnly if ThumbnailOnly fails
82+
// Fallback to IconOnly for COM exceptions
8383
imageFactory.GetImage(size, (SIIGBF)ThumbnailOptions.IconOnly, &hBitmap);
8484
}
8585
catch (FileNotFoundException)
8686
{
87-
// Fallback to IconOnly if ThumbnailOnly fails
87+
// Fallback to IconOnly if files cannot be found
8888
imageFactory.GetImage(size, (SIIGBF)ThumbnailOptions.IconOnly, &hBitmap);
8989
}
9090
}

0 commit comments

Comments
 (0)