[EXPLORER]

- Fix uninitialized variable use in CTaskSwitchWnd::OnContextMenu

svn path=/trunk/; revision=66353
This commit is contained in:
Thomas Faber 2015-02-19 16:30:37 +00:00
parent 888d828ea7
commit b45c1ca3a8

View file

@ -1756,11 +1756,12 @@ public:
LRESULT OnContextMenu(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
LRESULT Ret;
LRESULT Ret = 0;
INT_PTR iBtn = -1;
if (m_TaskBar.m_hWnd != NULL)
{
POINT pt;
INT_PTR iBtn;
pt.x = GET_X_LPARAM(lParam);
pt.y = GET_Y_LPARAM(lParam);
@ -1772,13 +1773,10 @@ public:
{
HandleButtonRightClick(iBtn);
}
else
goto ForwardContextMenuMsg;
}
else
if (iBtn < 0)
{
ForwardContextMenuMsg:
/* Forward message */
/* Not on a taskbar button, so forward message to tray */
Ret = SendMessage(m_Tray->GetHWND(), uMsg, wParam, lParam);
}
return Ret;