mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[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:
parent
6a85d82141
commit
f46c30d548
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue