Commit 7a49da50 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

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

parent 8ce45458
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment