shell32/shellview: Set provided callback in SHCreateShellFolderView().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2017-04-30 22:01:55 +03:00 committed by Alexandre Julliard
parent 8ce45458fb
commit 7a49da5070
1 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,7 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#define CINTERFACE
#define COBJMACROS #define COBJMACROS
#define NONAMELESSUNION #define NONAMELESSUNION
@ -3775,6 +3776,14 @@ HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *desc, IShellView **shel
if (!*shellview) if (!*shellview)
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
if (desc->psfvcb)
{
IShellFolderView *view;
IShellView_QueryInterface(*shellview, &IID_IShellFolderView, (void **)&view);
IShellFolderView_SetCallback(view, desc->psfvcb, NULL);
IShellFolderView_Release(view);
}
return S_OK; return S_OK;
} }