[SHELL32] Fix a couple of tests

This commit is contained in:
Giannis Adamopoulos
2018-02-20 11:48:40 +02:00
parent ac950ea01d
commit 7e48c20b3b
2 changed files with 5 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -819,6 +819,9 @@ HRESULT WINAPI CDesktopFolder::Initialize(LPCITEMIDLIST pidl)
{
TRACE ("(%p)->(%p)\n", this, pidl);
if (!pidl)
return S_OK;
return E_INVALIDARG;
}