Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AquaRains committed Nov 9, 2022
1 parent b6d843c commit 211993f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Tray.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,8 @@ public void Doit()

private static unsafe bool EnumWindowsCommand(IntPtr hwnd, IntPtr lParam)
{
WindowsCommandParams* p = (WindowsCommandParams*)lParam;
var v = new char[255];
_ = GetClassName(hwnd, v);
string className = new string(v).TrimEnd('\0');
WindowsCommandParams* p = (WindowsCommandParams*)lParam;
string className = GetClassName(hwnd);

if (GetParent(hwnd) == p->MainHandle && hwnd != p->HwndAdArea && className == "EVA_ChildWindow")
{
Expand Down

0 comments on commit 211993f

Please sign in to comment.