Skip to content

Commit 83fa654

Browse files
committed
Improve constant name
1 parent a1b5941 commit 83fa654

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
@@ -31,7 +31,7 @@ public class WindowsThumbnailProvider
3131

3232
private static readonly Guid GUID_IShellItem = typeof(IShellItem).GUID;
3333

34-
private static readonly HRESULT S_ExtractionFailed = (HRESULT)0x8004B200;
34+
private static readonly HRESULT S_EXTRACTIONFAILED = (HRESULT)0x8004B200;
3535

3636
private static readonly HRESULT S_PATHNOTFOUND = (HRESULT)0x8004B205;
3737

@@ -82,7 +82,7 @@ private static unsafe HBITMAP GetHBitmap(string fileName, int width, int height,
8282
imageFactory.GetImage(size, (SIIGBF)options, &hBitmap);
8383
}
8484
catch (COMException ex) when (options == ThumbnailOptions.ThumbnailOnly &&
85-
(ex.HResult == S_PATHNOTFOUND || ex.HResult == S_ExtractionFailed))
85+
(ex.HResult == S_PATHNOTFOUND || ex.HResult == S_EXTRACTIONFAILED))
8686
{
8787
// Fallback to IconOnly if extraction fails or files cannot be found
8888
imageFactory.GetImage(size, (SIIGBF)ThumbnailOptions.IconOnly, &hBitmap);

0 commit comments

Comments
 (0)