From c813ae2230d9a4776d1c09b0e17063ff9a52d9e3 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 8 Jan 2014 12:37:42 +0400 Subject: [PATCH] scrrun: Implement Clone() for file collection. --- dlls/scrrun/filesystem.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c index 2ed64699bcd..e0c9a34e14f 100644 --- a/dlls/scrrun/filesystem.c +++ b/dlls/scrrun/filesystem.c @@ -145,6 +145,7 @@ static inline HRESULT create_error(DWORD err) static HRESULT create_folder(const WCHAR*, IFolder**); static HRESULT create_file(BSTR, IFile**); static HRESULT create_foldercoll_enum(struct foldercollection*, IUnknown**); +static HRESULT create_filecoll_enum(struct filecollection*, IUnknown**); static inline BOOL is_dir_data(const WIN32_FIND_DATAW *data) { @@ -723,8 +724,8 @@ static HRESULT WINAPI filecoll_enumvariant_Reset(IEnumVARIANT *iface) static HRESULT WINAPI filecoll_enumvariant_Clone(IEnumVARIANT *iface, IEnumVARIANT **pclone) { struct enumvariant *This = impl_from_IEnumVARIANT(iface); - FIXME("(%p)->(%p): stub\n", This, pclone); - return E_NOTIMPL; + TRACE("(%p)->(%p)\n", This, pclone); + return create_filecoll_enum(This->data.u.filecoll.coll, (IUnknown**)pclone); } static const IEnumVARIANTVtbl filecollenumvariantvtbl = { @@ -737,7 +738,7 @@ static const IEnumVARIANTVtbl filecollenumvariantvtbl = { filecoll_enumvariant_Clone }; -static HRESULT create_filecoll_enum(struct filecollection *collection, IUnknown **newenum) +HRESULT create_filecoll_enum(struct filecollection *collection, IUnknown **newenum) { struct enumvariant *This;