ole32: Replace const pointer parameters with correct pointers to const

Andrew Talbot Andrew.Talbot at talbotville.com
Thu Mar 8 16:13:43 CST 2007


Changelog:
    ole32: Replace const pointer parameters with correct pointers to const.

diff -urN a/dlls/ole32/stg_prop.c b/dlls/ole32/stg_prop.c
--- a/dlls/ole32/stg_prop.c	2006-11-07 17:36:35.000000000 +0000
+++ b/dlls/ole32/stg_prop.c	2007-03-08 20:50:29.000000000 +0000
@@ -744,7 +744,7 @@
     IPropertyStorage* iface,
     ULONG cpropid,
     const PROPID rgpropid[],
-    const LPOLESTR rglpwstrName[])
+    LPCOLESTR rglpwstrName[])
 {
     PropertyStorage_impl *This = (PropertyStorage_impl *)iface;
     ULONG i;
@@ -2576,7 +2576,7 @@
  * Based on the algorithm described here:
  * http://msdn.microsoft.com/library/en-us/stg/stg/names_in_istorage.asp
  */
-HRESULT WINAPI PropStgNameToFmtId(const LPOLESTR str, FMTID *rfmtid)
+HRESULT WINAPI PropStgNameToFmtId(LPCOLESTR str, FMTID *rfmtid)
 {
     HRESULT hr = STG_E_INVALIDNAME;
 
diff -urN a/dlls/ole32/tests/stg_prop.c b/dlls/ole32/tests/stg_prop.c
--- a/dlls/ole32/tests/stg_prop.c	2007-01-10 12:33:34.000000000 +0000
+++ b/dlls/ole32/tests/stg_prop.c	2007-03-08 20:57:45.000000000 +0000
@@ -25,7 +25,7 @@
 #endif
 
 static HRESULT (WINAPI *pFmtIdToPropStgName)(const FMTID *, LPOLESTR);
-static HRESULT (WINAPI *pPropStgNameToFmtId)(const LPOLESTR, FMTID *);
+static HRESULT (WINAPI *pPropStgNameToFmtId)(LPCOLESTR, FMTID *);
 static HRESULT (WINAPI *pStgCreatePropSetStg)(IStorage *, DWORD, IPropertySetStorage **);
 
 static void init_function_pointers(void)
diff -urN a/include/propidl.idl b/include/propidl.idl
--- a/include/propidl.idl	2006-07-20 12:22:17.000000000 +0100
+++ b/include/propidl.idl	2007-03-08 21:50:34.000000000 +0000
@@ -300,7 +300,7 @@
   HRESULT WritePropertyNames(
     [in] ULONG cpropid,
     [in, size_is(cpropid)] const PROPID rgpropid[],
-    [in, size_is(cpropid)] const LPOLESTR rglpwstrName[]);
+    [in, size_is(cpropid)] LPCOLESTR rglpwstrName[]);
 
   HRESULT DeletePropertyNames(
     [in] ULONG cpropid,
@@ -433,6 +433,6 @@
 cpp_quote("HRESULT WINAPI StgCreatePropSetStg(IStorage *, DWORD, IPropertySetStorage **);")
 cpp_quote("#define CCH_MAX_PROPSTG_NAME 31")
 cpp_quote("HRESULT WINAPI FmtIdToPropStgName(const FMTID *, LPOLESTR);")
-cpp_quote("HRESULT WINAPI PropStgNameToFmtId(const LPOLESTR, FMTID *);")
+cpp_quote("HRESULT WINAPI PropStgNameToFmtId(LPCOLESTR, FMTID *);")
 cpp_quote("#endif /* _STGCREATEPROPSTG_DEFINED_ */")
 cpp_quote("")



More information about the wine-patches mailing list