[04/18] windowscodecs: Make classinfo structure const.
Dmitry Timoshkov
dmitry at baikal.ru
Tue Jul 24 01:04:20 CDT 2012
---
dlls/windowscodecs/clsfactory.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/windowscodecs/clsfactory.c b/dlls/windowscodecs/clsfactory.c
index 6a81a9d..40d1547 100644
--- a/dlls/windowscodecs/clsfactory.c
+++ b/dlls/windowscodecs/clsfactory.c
@@ -44,7 +44,7 @@ typedef struct {
HRESULT (*constructor)(IUnknown*,REFIID,void**);
} classinfo;
-static classinfo wic_classes[] = {
+static const classinfo wic_classes[] = {
{&CLSID_WICImagingFactory, ComponentFactory_CreateInstance},
{&CLSID_WICBmpDecoder, BmpDecoder_CreateInstance},
{&CLSID_WICPngDecoder, PngDecoder_CreateInstance},
@@ -66,7 +66,7 @@ static classinfo wic_classes[] = {
typedef struct {
IClassFactory IClassFactory_iface;
LONG ref;
- classinfo *info;
+ const classinfo *info;
} ClassFactoryImpl;
static inline ClassFactoryImpl *impl_from_IClassFactory(IClassFactory *iface)
@@ -142,7 +142,7 @@ static const IClassFactoryVtbl ClassFactoryImpl_Vtbl = {
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;
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 ret;
- classinfo *info=NULL;
+ const classinfo *info=NULL;
int i;
TRACE("(%s,%s,%p)\n", debugstr_guid(rclsid), debugstr_guid(iid), ppv);
--
1.7.11.2
More information about the wine-patches
mailing list