mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[SHELL32] DestroyMenu on m_pShellMenu->SetMenu failure
CORE-13194
This commit is contained in:
parent
924a8fea10
commit
92c904addc
1 changed files with 4 additions and 1 deletions
|
@ -86,13 +86,16 @@ private:
|
|||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
hr = m_pTrayPriv->AppendMenuW(&hmenu);
|
||||
hr = m_pTrayPriv->AppendMenu(&hmenu);
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
return hr;
|
||||
|
||||
hr = m_pShellMenu->SetMenu(hmenu, NULL, SMSET_BOTTOM);
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
{
|
||||
DestroyMenu(hmenu);
|
||||
return hr;
|
||||
}
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue