mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 12:03:52 +00:00
[EXPLORER-NEW]
* Cleanup in case of error. CID 1248426 [RSHELL] * Add uninitialized class fields. CID 1248477 * Avoid leaking memory. CID 1248438 [BROWSEUI] * Fix potential overwriting of a variable. CID 716363 * Save the rshell handle instead of loading it every time. CID 1248435 * Fix leaked PIDL. CID 1248418 [SHELL32] * Fix GCC build. And one small nickpick that has been bothering me for a long time. svn path=/branches/shell-experiments/; revision=64864
This commit is contained in:
parent
96cdae0a7c
commit
9abc368186
7 changed files with 31 additions and 18 deletions
|
@ -1191,7 +1191,10 @@ HRESULT CMenuStaticToolbar::FillToolbar(BOOL clearFirst)
|
|||
|
||||
HRESULT hr = m_menuBand->_CallCBWithItemId(info.wID, SMC_GETINFO, 0, reinterpret_cast<LPARAM>(sminfo));
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
{
|
||||
delete sminfo;
|
||||
return hr;
|
||||
}
|
||||
|
||||
AddButton(info.wID, info.dwTypeData, info.hSubMenu != NULL, sminfo->iIcon, reinterpret_cast<DWORD_PTR>(sminfo), last);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue