Skip to content

Commit

Permalink
Revert "Handle case when TaskBarList could not be created (AvaloniaUI…
Browse files Browse the repository at this point in the history
…#15852)"

This reverts commit 0063a5e.
  • Loading branch information
Luoyingliang committed May 31, 2024
1 parent d05176b commit 2990840
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Windows/Avalonia.Win32/Interop/TaskBarList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ private static unsafe IntPtr Init()
{
int result = CoCreateInstance(in ShellIds.TaskBarList, IntPtr.Zero, 1, in ShellIds.ITaskBarList2, out IntPtr instance);

if (result != (int)HRESULT.S_OK)
{
return IntPtr.Zero;
}

var ptr = (ITaskBarList3VTable**)instance.ToPointer();

s_hrInitDelegate ??= Marshal.GetDelegateForFunctionPointer<HrInit>((*ptr)->HrInit);
Expand Down

0 comments on commit 2990840

Please sign in to comment.