[SHELL32]

- Don't fail on NULL array pointer if count is zero
CORE-8443 #resolve

svn path=/trunk/; revision=63887
This commit is contained in:
Thomas Faber 2014-08-14 22:43:10 +00:00
parent 6a85d82141
commit f46c30d548

View file

@ -150,7 +150,7 @@ HRESULT WINAPI CDefaultContextMenu::Initialize(const DEFCONTEXTMENU *pdcm)
m_cidl = pdcm->cidl;
m_apidl = const_cast<PCUITEMID_CHILD_ARRAY>(_ILCopyaPidl(pdcm->apidl, m_cidl));
if (!m_apidl)
if (m_cidl && !m_apidl)
return E_OUTOFMEMORY;
m_psf = pdcm->psf;
m_psf->AddRef();