windowscodecs: Make classinfo structure const.
This commit is contained in:
parent
2a35901a90
commit
7824827a32
@ -44,7 +44,7 @@ typedef struct {
|
|||||||
HRESULT (*constructor)(IUnknown*,REFIID,void**);
|
HRESULT (*constructor)(IUnknown*,REFIID,void**);
|
||||||
} classinfo;
|
} classinfo;
|
||||||
|
|
||||||
static classinfo wic_classes[] = {
|
static const classinfo wic_classes[] = {
|
||||||
{&CLSID_WICImagingFactory, ComponentFactory_CreateInstance},
|
{&CLSID_WICImagingFactory, ComponentFactory_CreateInstance},
|
||||||
{&CLSID_WICBmpDecoder, BmpDecoder_CreateInstance},
|
{&CLSID_WICBmpDecoder, BmpDecoder_CreateInstance},
|
||||||
{&CLSID_WICPngDecoder, PngDecoder_CreateInstance},
|
{&CLSID_WICPngDecoder, PngDecoder_CreateInstance},
|
||||||
@ -66,7 +66,7 @@ static classinfo wic_classes[] = {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
IClassFactory IClassFactory_iface;
|
IClassFactory IClassFactory_iface;
|
||||||
LONG ref;
|
LONG ref;
|
||||||
classinfo *info;
|
const classinfo *info;
|
||||||
} ClassFactoryImpl;
|
} ClassFactoryImpl;
|
||||||
|
|
||||||
static inline ClassFactoryImpl *impl_from_IClassFactory(IClassFactory *iface)
|
static inline ClassFactoryImpl *impl_from_IClassFactory(IClassFactory *iface)
|
||||||
@ -142,7 +142,7 @@ static const IClassFactoryVtbl ClassFactoryImpl_Vtbl = {
|
|||||||
ClassFactoryImpl_LockServer
|
ClassFactoryImpl_LockServer
|
||||||
};
|
};
|
||||||
|
|
||||||
static HRESULT ClassFactoryImpl_Constructor(classinfo *info, REFIID riid, LPVOID *ppv)
|
static HRESULT ClassFactoryImpl_Constructor(const classinfo *info, REFIID riid, LPVOID *ppv)
|
||||||
{
|
{
|
||||||
ClassFactoryImpl *This;
|
ClassFactoryImpl *This;
|
||||||
HRESULT ret;
|
HRESULT ret;
|
||||||
@ -165,7 +165,7 @@ static HRESULT ClassFactoryImpl_Constructor(classinfo *info, REFIID riid, LPVOID
|
|||||||
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
|
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID iid, LPVOID *ppv)
|
||||||
{
|
{
|
||||||
HRESULT ret;
|
HRESULT ret;
|
||||||
classinfo *info=NULL;
|
const classinfo *info=NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
|
TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user