Skip to content

Commit

Permalink
Address reviewer feedback regarding GetParent() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Splitwirez committed May 30, 2024
1 parent ed60a82 commit 477c4a5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions base/shell/explorer/traydeskbtn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,7 @@ HRESULT CTrayShowDesktopButton::DoCreate(HWND hwndParent)
EnsureWindowTheme(TRUE);

// Get HWND of Taskbar
auto parent = GetParent();
if (!parent)
return E_FAIL;
parent = parent.GetParent();
if (!parent)
return E_FAIL;
m_hWndTaskbar = parent.m_hWnd;
m_hWndTaskbar = ::GetParent(hwndParent);
if (!::IsWindow(m_hWndTaskbar))
return E_FAIL;

Expand Down

0 comments on commit 477c4a5

Please sign in to comment.