mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[SHELL32] SHCreateShellFolderView(): Fix parameter validation order. (#1632)
Fixes one modification from commit ae2a85d0
.
CORE-16098
This commit is contained in:
parent
c1421c4108
commit
8a8453494f
1 changed files with 6 additions and 3 deletions
|
@ -3449,14 +3449,17 @@ HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *pcsfv,
|
|||
CComPtr<IShellView> psv;
|
||||
HRESULT hRes;
|
||||
|
||||
if (!ppsv || !pcsfv || pcsfv->cbSize != sizeof(*pcsfv))
|
||||
if (!ppsv)
|
||||
return E_INVALIDARG;
|
||||
|
||||
*ppsv = NULL;
|
||||
|
||||
if (!pcsfv || pcsfv->cbSize != sizeof(*pcsfv))
|
||||
return E_INVALIDARG;
|
||||
|
||||
TRACE("sf=%p outer=%p callback=%p\n",
|
||||
pcsfv->pshf, pcsfv->psvOuter, pcsfv->psfvcb);
|
||||
|
||||
*ppsv = NULL;
|
||||
|
||||
hRes = CDefView_CreateInstance(pcsfv->pshf, IID_PPV_ARG(IShellView, &psv));
|
||||
if (FAILED(hRes))
|
||||
return hRes;
|
||||
|
|
Loading…
Reference in a new issue