msi: Constify some variables.

This commit is contained in:
Andrew Talbot 2007-05-31 22:19:28 +01:00 committed by Alexandre Julliard
parent d4fc05a9b7
commit 1486d851da
5 changed files with 15 additions and 15 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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 )