windowscodecs: Use create_instance instead of ImagingFactory_CreateInstance.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Esme Povirk <esme@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3549097c9e
commit
f6c7f150ec
|
@ -206,7 +206,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
|
|||
return ret;
|
||||
}
|
||||
|
||||
HRESULT create_instance(CLSID *clsid, const IID *iid, void **ppv)
|
||||
HRESULT create_instance(const CLSID *clsid, const IID *iid, void **ppv)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -665,7 +665,7 @@ static HRESULT WINAPI CommonDecoderFrame_Block_GetReaderByIndex(IWICMetadataBloc
|
|||
else
|
||||
{
|
||||
if (SUCCEEDED(hr))
|
||||
hr = ImagingFactory_CreateInstance(&IID_IWICComponentFactory, (void**)&factory);
|
||||
hr = create_instance(&CLSID_WICImagingFactory, &IID_IWICComponentFactory, (void**)&factory);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
|
|
|
@ -679,7 +679,7 @@ static HRESULT WINAPI PaletteImpl_InitializeFromBitmap(IWICPalette *palette,
|
|||
else
|
||||
rgb24_source = source;
|
||||
|
||||
hr = ImagingFactory_CreateInstance(&IID_IWICImagingFactory, (void **)&factory);
|
||||
hr = create_instance(&CLSID_WICImagingFactory, &IID_IWICImagingFactory, (void **)&factory);
|
||||
if (hr != S_OK) goto fail;
|
||||
|
||||
hr = IWICImagingFactory_CreateBitmapFromSource(factory, rgb24_source, WICBitmapCacheOnLoad, &rgb24_bitmap);
|
||||
|
|
|
@ -133,7 +133,7 @@ DECLARE_INTERFACE_(IMILUnknown2,IUnknown)
|
|||
};
|
||||
#undef INTERFACE
|
||||
|
||||
HRESULT create_instance(CLSID *clsid, const IID *iid, void **ppv) DECLSPEC_HIDDEN;
|
||||
HRESULT create_instance(const CLSID *clsid, const IID *iid, void **ppv) DECLSPEC_HIDDEN;
|
||||
|
||||
typedef HRESULT(*class_constructor)(REFIID,void**);
|
||||
extern HRESULT FormatConverter_CreateInstance(REFIID riid, void** ppv) DECLSPEC_HIDDEN;
|
||||
|
|
Loading…
Reference in New Issue