* Improve logging in case of unexpected failures, and trace the creation of toolbar (menu) items.
CORE-7586

svn path=/branches/shell-experiments/; revision=62414
This commit is contained in:
David Quintana 2014-03-03 16:11:47 +00:00
parent 612d72cb58
commit 7fe9315c7e
13 changed files with 170 additions and 148 deletions

View file

@ -207,13 +207,13 @@ HRESULT CMenuFocusManager::UpdateFocus(CMenuBand * newBand)
}
hr = newBand->_GetTopLevelWindow(&newFocus);
if (FAILED(hr))
if (FAILED_UNEXPECTEDLY(hr))
return hr;
if (!m_currentBand)
{
hr = PlaceHooks(newFocus);
if (FAILED(hr))
if (FAILED_UNEXPECTEDLY(hr))
return hr;
}
@ -228,7 +228,7 @@ HRESULT CMenuFocusManager::PushMenu(CMenuBand * mb)
HRESULT hr;
hr = PushToArray(mb);
if (FAILED(hr))
if (FAILED_UNEXPECTEDLY(hr))
return hr;
return UpdateFocus(mb);
@ -240,7 +240,7 @@ HRESULT CMenuFocusManager::PopMenu(CMenuBand * mb)
HRESULT hr;
hr = PopFromArray(&mbc);
if (FAILED(hr))
if (FAILED_UNEXPECTEDLY(hr))
return hr;
if (mb != mbc)