From 7a49da50705fe535cd61d45e43a1d848da3a51b8 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Sun, 30 Apr 2017 22:01:55 +0300 Subject: [PATCH] shell32/shellview: Set provided callback in SHCreateShellFolderView(). Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- dlls/shell32/shlview.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 070f0705cb7..2c8b6bd8d5d 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -43,6 +43,7 @@ #include #include +#define CINTERFACE #define COBJMACROS #define NONAMELESSUNION @@ -3775,6 +3776,14 @@ HRESULT WINAPI SHCreateShellFolderView(const SFV_CREATE *desc, IShellView **shel if (!*shellview) 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; }