Commit 2018de00 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Constify some parameters.

parent 50d75d48
......@@ -42,7 +42,7 @@ typedef struct tagMSICREATEVIEW
{
MSIVIEW view;
MSIDATABASE *db;
LPWSTR name;
LPCWSTR name;
BOOL bIsTemp;
BOOL hold;
column_info *col_info;
......@@ -145,9 +145,9 @@ static const MSIVIEWOPS create_ops =
NULL,
};
static UINT check_columns( column_info *col_info )
static UINT check_columns( const column_info *col_info )
{
column_info *c1, *c2;
const column_info *c1, *c2;
/* check for two columns with the same name */
for( c1 = col_info; c1; c1 = c1->next )
......@@ -158,7 +158,7 @@ static UINT check_columns( column_info *col_info )
return ERROR_SUCCESS;
}
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
column_info *col_info, BOOL hold )
{
MSICREATEVIEW *cv = NULL;
......
......@@ -98,7 +98,7 @@ UINT ORDER_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table,
UINT WHERE_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table,
struct expr *cond );
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPWSTR table,
UINT CREATE_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
column_info *col_info, BOOL hold );
UINT INSERT_CreateView( MSIDATABASE *db, MSIVIEW **view, LPCWSTR table,
......
......@@ -54,7 +54,7 @@ static UINT SQL_getstring( void *info, const struct sql_str *strdata, LPWSTR *st
static INT SQL_getint( void *info );
static int sql_lex( void *SQL_lval, SQL_input *info );
static LPWSTR parser_add_table( LPWSTR list, LPWSTR table );
static LPWSTR parser_add_table( LPWSTR list, LPCWSTR table );
static void *parser_alloc( void *info, unsigned int sz );
static column_info *parser_alloc_column( void *info, LPCWSTR table, LPCWSTR column );
......@@ -696,7 +696,7 @@ number:
%%
static LPWSTR parser_add_table(LPWSTR list, LPWSTR table)
static LPWSTR parser_add_table(LPWSTR list, LPCWSTR table)
{
DWORD size = lstrlenW(list) + lstrlenW(table) + 2;
static const WCHAR space[] = {' ',0};
......
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