mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +00:00
[SHELL32] - CMenuBand: Don't accept a NULL shell folder in SetShellFolder. Should fix a test and possibly CORE-12300.
svn path=/trunk/; revision=73188
This commit is contained in:
parent
d2812c3e70
commit
0125f9192d
1 changed files with 3 additions and 0 deletions
|
@ -672,6 +672,9 @@ HRESULT STDMETHODCALLTYPE CMenuBand::TranslateMenuMessage(MSG *pmsg, LRESULT *pl
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE CMenuBand::SetShellFolder(IShellFolder *psf, LPCITEMIDLIST pidlFolder, HKEY hKey, DWORD dwFlags)
|
HRESULT STDMETHODCALLTYPE CMenuBand::SetShellFolder(IShellFolder *psf, LPCITEMIDLIST pidlFolder, HKEY hKey, DWORD dwFlags)
|
||||||
{
|
{
|
||||||
|
if (!psf)
|
||||||
|
return E_INVALIDARG;
|
||||||
|
|
||||||
if (m_SFToolbar == NULL)
|
if (m_SFToolbar == NULL)
|
||||||
{
|
{
|
||||||
m_SFToolbar = new CMenuSFToolbar(this);
|
m_SFToolbar = new CMenuSFToolbar(this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue