Commit 8e2bee8c authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

comcat: Constify some variables.

parent 970cfc74
...@@ -35,7 +35,7 @@ struct class_categories { ...@@ -35,7 +35,7 @@ struct class_categories {
}; };
static struct class_categories *COMCAT_PrepareClassCategories( static struct class_categories *COMCAT_PrepareClassCategories(
ULONG impl_count, CATID *impl_catids, ULONG req_count, CATID *req_catids); ULONG impl_count, const CATID *impl_catids, ULONG req_count, const CATID *req_catids);
static HRESULT COMCAT_IsClassOfCategories( static HRESULT COMCAT_IsClassOfCategories(
HKEY key, struct class_categories const* class_categories); HKEY key, struct class_categories const* class_categories);
static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct( static LPENUMGUID COMCAT_CLSID_IEnumGUID_Construct(
...@@ -513,7 +513,7 @@ static HRESULT COMCAT_GetCategoryDesc(HKEY key, LCID lcid, PWCHAR pszDesc, ...@@ -513,7 +513,7 @@ static HRESULT COMCAT_GetCategoryDesc(HKEY key, LCID lcid, PWCHAR pszDesc,
* COMCAT_PrepareClassCategories * COMCAT_PrepareClassCategories
*/ */
static struct class_categories *COMCAT_PrepareClassCategories( static struct class_categories *COMCAT_PrepareClassCategories(
ULONG impl_count, CATID *impl_catids, ULONG req_count, CATID *req_catids) ULONG impl_count, const CATID *impl_catids, ULONG req_count, const CATID *req_catids)
{ {
struct class_categories *categories; struct class_categories *categories;
WCHAR *strings; WCHAR *strings;
......
...@@ -41,10 +41,10 @@ static const WCHAR req_keyname[20] = { ...@@ -41,10 +41,10 @@ static const WCHAR req_keyname[20] = {
static HRESULT COMCAT_RegisterClassCategories( static HRESULT COMCAT_RegisterClassCategories(
REFCLSID rclsid, LPCWSTR type, REFCLSID rclsid, LPCWSTR type,
ULONG cCategories, CATID *rgcatid); ULONG cCategories, const CATID *rgcatid);
static HRESULT COMCAT_UnRegisterClassCategories( static HRESULT COMCAT_UnRegisterClassCategories(
REFCLSID rclsid, LPCWSTR type, REFCLSID rclsid, LPCWSTR type,
ULONG cCategories, CATID *rgcatid); ULONG cCategories, const CATID *rgcatid);
/********************************************************************** /**********************************************************************
* COMCAT_ICatRegister_QueryInterface * COMCAT_ICatRegister_QueryInterface
...@@ -256,7 +256,7 @@ static HRESULT COMCAT_RegisterClassCategories( ...@@ -256,7 +256,7 @@ static HRESULT COMCAT_RegisterClassCategories(
REFCLSID rclsid, REFCLSID rclsid,
LPCWSTR type, LPCWSTR type,
ULONG cCategories, ULONG cCategories,
CATID *rgcatid) const CATID *rgcatid)
{ {
WCHAR keyname[39]; WCHAR keyname[39];
HRESULT res; HRESULT res;
...@@ -309,7 +309,7 @@ static HRESULT COMCAT_UnRegisterClassCategories( ...@@ -309,7 +309,7 @@ static HRESULT COMCAT_UnRegisterClassCategories(
REFCLSID rclsid, REFCLSID rclsid,
LPCWSTR type, LPCWSTR type,
ULONG cCategories, ULONG cCategories,
CATID *rgcatid) const CATID *rgcatid)
{ {
WCHAR keyname[68] = { 'C', 'L', 'S', 'I', 'D', '\\' }; WCHAR keyname[68] = { 'C', 'L', 'S', 'I', 'D', '\\' };
HRESULT res; HRESULT res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment