We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d638827 commit f5e907fCopy full SHA for f5e907f
src/Files.App/Utils/Shell/Win32API.cs
@@ -568,18 +568,17 @@ public static Task<bool> MountVhdDisk(string vhdPath)
568
569
public static Shell32.ITaskbarList4? CreateTaskbarObject()
570
{
571
- var taskbar2 = new Shell32.ITaskbarList2();
572
try
573
+ var taskbar2 = new Shell32.ITaskbarList2();
574
taskbar2.HrInit();
575
+ return taskbar2 as Shell32.ITaskbarList4;
576
}
- catch (NotImplementedException)
577
+ catch (Exception)
578
579
// explorer.exe is not running as a shell
580
return null;
581
-
582
- return taskbar2 as Shell32.ITaskbarList4;
583
584
585
private static Bitmap GetAlphaBitmapFromBitmapData(BitmapData bmpData)
0 commit comments