mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[SHELL32] Fix a couple of tests
This commit is contained in:
parent
ac950ea01d
commit
7e48c20b3b
2 changed files with 5 additions and 1 deletions
|
@ -250,6 +250,8 @@ HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST pidlParent,
|
|||
|
||||
TRACE("(%p,%p,%p,%p)\n", pidlParent, psfParent, pidl, ppsi);
|
||||
|
||||
*ppsi = NULL;
|
||||
|
||||
if (!pidl)
|
||||
return E_INVALIDARG;
|
||||
|
||||
|
@ -291,7 +293,6 @@ HRESULT WINAPI SHCreateShellItem(LPCITEMIDLIST pidlParent,
|
|||
hr = CShellItem::_CreatorClass::CreateInstance(NULL, IID_PPV_ARG(IShellItem, &newShellItem));
|
||||
if (FAILED(hr))
|
||||
{
|
||||
*ppsi = NULL;
|
||||
ILFree(new_pidl);
|
||||
return hr;
|
||||
}
|
||||
|
|
|
@ -819,6 +819,9 @@ HRESULT WINAPI CDesktopFolder::Initialize(LPCITEMIDLIST pidl)
|
|||
{
|
||||
TRACE ("(%p)->(%p)\n", this, pidl);
|
||||
|
||||
if (!pidl)
|
||||
return S_OK;
|
||||
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue