Dmitry Timoshkov : windowscodecs: Make classinfo structure const.
Alexandre Julliard
julliard at winehq.org
Tue Jul 24 14:39:37 CDT 2012
Module: wine
Branch: master
Commit: 7824827a326fde9e3633475a681c99d0318c94c0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7824827a326fde9e3633475a681c99d0318c94c0
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Tue Jul 24 15:04:20 2012 +0900
windowscodecs: Make classinfo structure const.
---
dlls/windowscodecs/clsfactory.c | 8 ++++----
1 files 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);
More information about the wine-cvs
mailing list