Skip to content

Commit 8d3da79

Browse files
authored
Fix file icons appearing upside-down (#3279)
1 parent 33e6324 commit 8d3da79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Files.Launcher/Win32API.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private static Bitmap GetBitmapFromHBitmap(HBITMAP hBitmap)
201201
{
202202
try
203203
{
204-
Bitmap bmp = hBitmap.ToBitmap();
204+
Bitmap bmp = Image.FromHbitmap((IntPtr)hBitmap);
205205
if (Image.GetPixelFormatSize(bmp.PixelFormat) < 32)
206206
{
207207
return bmp;

0 commit comments

Comments
 (0)