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:
parent
8ce45458fb
commit
7a49da5070
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue