Nikolay Sivov : shell32/shellview: Set provided callback in SHCreateShellFolderView().
Alexandre Julliard
julliard at winehq.org
Mon May 1 16:38:04 CDT 2017
Module: wine
Branch: master
Commit: 7a49da50705fe535cd61d45e43a1d848da3a51b8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a49da50705fe535cd61d45e43a1d848da3a51b8
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Apr 30 22:01:55 2017 +0300
shell32/shellview: Set provided callback in SHCreateShellFolderView().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
}
More information about the wine-cvs
mailing list