diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c index 362de85d81c..c7ac20ac301 100644 --- a/dlls/quartz/filtermapper.c +++ b/dlls/quartz/filtermapper.c @@ -180,6 +180,22 @@ HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj) return S_OK; } +HRESULT FilterMapper_create(IUnknown *pUnkOuter, LPVOID *ppObj) +{ + FilterMapper2Impl *pFM2impl; + HRESULT hr; + + TRACE("(%p, %p)\n", pUnkOuter, ppObj); + + hr = FilterMapper2_create(pUnkOuter, (LPVOID*)&pFM2impl); + if (FAILED(hr)) + return hr; + + *ppObj = &pFM2impl->lpVtblFilterMapper; + + return hr; +} + /*** IUnknown methods ***/ static HRESULT WINAPI FilterMapper2_QueryInterface(IFilterMapper2 * iface, REFIID riid, LPVOID *ppv) diff --git a/dlls/quartz/main.c b/dlls/quartz/main.c index b5e403280d0..559b7918d9c 100644 --- a/dlls/quartz/main.c +++ b/dlls/quartz/main.c @@ -62,7 +62,7 @@ static const struct object_creation_info object_creation[] = { { &CLSID_FilterGraph, FilterGraph_create }, { &CLSID_FilterGraphNoThread, FilterGraphNoThread_create }, - { &CLSID_FilterMapper, FilterMapper2_create }, + { &CLSID_FilterMapper, FilterMapper_create }, { &CLSID_FilterMapper2, FilterMapper2_create }, { &CLSID_AsyncReader, AsyncReader_create }, { &CLSID_MemoryAllocator, StdMemAllocator_create }, diff --git a/dlls/quartz/quartz_private.h b/dlls/quartz/quartz_private.h index 7c670539675..5b5094d5bb9 100644 --- a/dlls/quartz/quartz_private.h +++ b/dlls/quartz/quartz_private.h @@ -44,6 +44,7 @@ HRESULT FilterGraph_create(IUnknown *pUnkOuter, LPVOID *ppObj); HRESULT FilterGraphNoThread_create(IUnknown *pUnkOuter, LPVOID *ppObj); HRESULT FilterMapper2_create(IUnknown *pUnkOuter, LPVOID *ppObj); +HRESULT FilterMapper_create(IUnknown *pUnkOuter, LPVOID *ppObj); HRESULT AsyncReader_create(IUnknown * pUnkOuter, LPVOID * ppv); HRESULT StdMemAllocator_create(IUnknown * pUnkOuter, LPVOID * ppv); HRESULT AVISplitter_create(IUnknown * pUnkOuter, LPVOID * ppv);