Module: wine Branch: master Commit: 7a49da50705fe535cd61d45e43a1d848da3a51b8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a49da50705fe535cd61d45e43... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Sun Apr 30 22:01:55 2017 +0300 shell32/shellview: Set provided callback in SHCreateShellFolderView(). Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/shell32/shlview.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 070f070..2c8b6bd 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -43,6 +43,7 @@ #include <stdlib.h> #include <string.h> +#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; }