Andrew Talbot : msi: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 1 06:44:38 CDT 2007
Module: wine
Branch: master
Commit: 1486d851da87927a8f6bc13235eb36e928933fe3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1486d851da87927a8f6bc13235eb36e928933fe3
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Thu May 31 22:19:28 2007 +0100
msi: Constify some variables.
---
dlls/msi/appsearch.c | 6 +++---
dlls/msi/classes.c | 8 ++++----
dlls/msi/cond.y | 8 ++++----
dlls/msi/custom.c | 6 +++---
dlls/msi/msipriv.h | 2 +-
5 files changed, 15 insertions(+), 15 deletions(-)
diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c
index ea2f7cf..8db9cb9 100644
--- a/dlls/msi/appsearch.c
+++ b/dlls/msi/appsearch.c
@@ -474,7 +474,7 @@ static void ACTION_ExpandAnyPath(MSIPACKAGE *package, WCHAR *src, WCHAR *dst,
* Return ERROR_SUCCESS in case of success (whether or not the file matches),
* something else if an install-halting error occurs.
*/
-static UINT ACTION_FileVersionMatches(MSISIGNATURE *sig, LPCWSTR filePath,
+static UINT ACTION_FileVersionMatches(const MSISIGNATURE *sig, LPCWSTR filePath,
BOOL *matches)
{
UINT rc = ERROR_SUCCESS;
@@ -549,8 +549,8 @@ static UINT ACTION_FileVersionMatches(MSISIGNATURE *sig, LPCWSTR filePath,
* Return ERROR_SUCCESS in case of success (whether or not the file matches),
* something else if an install-halting error occurs.
*/
-static UINT ACTION_FileMatchesSig(MSISIGNATURE *sig,
- LPWIN32_FIND_DATAW findData, LPCWSTR fullFilePath, BOOL *matches)
+static UINT ACTION_FileMatchesSig(const MSISIGNATURE *sig,
+ const WIN32_FIND_DATAW *findData, LPCWSTR fullFilePath, BOOL *matches)
{
UINT rc = ERROR_SUCCESS;
diff --git a/dlls/msi/classes.c b/dlls/msi/classes.c
index e2bb34c..92c333d 100644
--- a/dlls/msi/classes.c
+++ b/dlls/msi/classes.c
@@ -735,7 +735,7 @@ static void mark_mime_for_install( MSIMIME *mime )
mime->InstallMe = TRUE;
}
-static UINT register_appid(MSIAPPID *appid, LPCWSTR app )
+static UINT register_appid(const MSIAPPID *appid, LPCWSTR app )
{
static const WCHAR szAppID[] = { 'A','p','p','I','D',0 };
static const WCHAR szRemoteServerName[] =
@@ -965,7 +965,7 @@ UINT ACTION_RegisterClassInfo(MSIPACKAGE *package)
return rc;
}
-static LPCWSTR get_clsid_of_progid( MSIPROGID *progid )
+static LPCWSTR get_clsid_of_progid( const MSIPROGID *progid )
{
while (progid)
{
@@ -976,7 +976,7 @@ static LPCWSTR get_clsid_of_progid( MSIPROGID *progid )
return NULL;
}
-static UINT register_progid( MSIPROGID* progid )
+static UINT register_progid( const MSIPROGID* progid )
{
static const WCHAR szCLSID[] = { 'C','L','S','I','D',0 };
static const WCHAR szDefaultIcon[] =
@@ -1048,7 +1048,7 @@ UINT ACTION_RegisterProgIdInfo(MSIPACKAGE *package)
}
static UINT register_verb(MSIPACKAGE *package, LPCWSTR progid,
- MSICOMPONENT* component, MSIEXTENSION* extension,
+ MSICOMPONENT* component, const MSIEXTENSION* extension,
MSIVERB* verb, INT* Sequence )
{
LPWSTR keyname;
diff --git a/dlls/msi/cond.y b/dlls/msi/cond.y
index 9cfb001..ee42ede 100644
--- a/dlls/msi/cond.y
+++ b/dlls/msi/cond.y
@@ -56,8 +56,8 @@ struct cond_str {
INT len;
};
-static LPWSTR COND_GetString( struct cond_str *str );
-static LPWSTR COND_GetLiteral( struct cond_str *str );
+static LPWSTR COND_GetString( const struct cond_str *str );
+static LPWSTR COND_GetLiteral( const struct cond_str *str );
static int cond_lex( void *COND_lval, COND_input *info);
static const WCHAR szEmpty[] = { 0 };
@@ -678,7 +678,7 @@ static int cond_lex( void *COND_lval, COND_input *cond )
return rc;
}
-static LPWSTR COND_GetString( struct cond_str *str )
+static LPWSTR COND_GetString( const struct cond_str *str )
{
LPWSTR ret;
@@ -692,7 +692,7 @@ static LPWSTR COND_GetString( struct cond_str *str )
return ret;
}
-static LPWSTR COND_GetLiteral( struct cond_str *str )
+static LPWSTR COND_GetLiteral( const struct cond_str *str )
{
LPWSTR ret;
diff --git a/dlls/msi/custom.c b/dlls/msi/custom.c
index 0216f03..e516256 100644
--- a/dlls/msi/custom.c
+++ b/dlls/msi/custom.c
@@ -124,7 +124,7 @@ static BOOL check_execution_scheduling_options(MSIPACKAGE *package, LPCWSTR acti
/* stores the CustomActionData before the action:
* [CustomActionData]Action
*/
-static LPWSTR msi_get_deferred_action(LPCWSTR action, LPWSTR actiondata)
+static LPWSTR msi_get_deferred_action(LPCWSTR action, LPCWSTR actiondata)
{
LPWSTR deferred;
DWORD len;
@@ -1016,7 +1016,7 @@ static UINT HANDLE_CustomType34(MSIPACKAGE *package, LPCWSTR source,
return wait_process_handle(package, type, info.hProcess, action);
}
-static DWORD WINAPI ACTION_CallScript( const LPGUID guid )
+static DWORD WINAPI ACTION_CallScript( const GUID *guid )
{
msi_custom_action_info *info;
MSIHANDLE hPackage;
@@ -1235,7 +1235,7 @@ static UINT HANDLE_CustomType53_54(MSIPACKAGE *package, LPCWSTR source,
return wait_thread_handle( info );
}
-void ACTION_FinishCustomActions(MSIPACKAGE* package)
+void ACTION_FinishCustomActions(const MSIPACKAGE* package)
{
struct list *item;
HANDLE *wait_handles;
diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h
index f8f1d3d..2d05d76 100644
--- a/dlls/msi/msipriv.h
+++ b/dlls/msi/msipriv.h
@@ -726,7 +726,7 @@ extern HINSTANCE msi_hInstance;
/* action related functions */
extern UINT ACTION_PerformAction(MSIPACKAGE *package, const WCHAR *action, BOOL force);
extern UINT ACTION_PerformUIAction(MSIPACKAGE *package, const WCHAR *action);
-extern void ACTION_FinishCustomActions( MSIPACKAGE* package);
+extern void ACTION_FinishCustomActions( const MSIPACKAGE* package);
extern UINT ACTION_CustomAction(MSIPACKAGE *package,const WCHAR *action, BOOL execute);
static inline void msi_feature_set_state( MSIFEATURE *feature, INSTALLSTATE state )
More information about the wine-cvs
mailing list