Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a0ae69a8
Commit
a0ae69a8
authored
Jun 05, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Jun 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Constify some variables.
parent
daca693f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
18 deletions
+18
-18
helpers.c
dlls/msi/helpers.c
+3
-3
insert.c
dlls/msi/insert.c
+3
-3
msi.c
dlls/msi/msi.c
+1
-1
msipriv.h
dlls/msi/msipriv.h
+6
-6
package.c
dlls/msi/package.c
+1
-1
query.h
dlls/msi/query.h
+2
-2
record.c
dlls/msi/record.c
+2
-2
No files found.
dlls/msi/helpers.c
View file @
a0ae69a8
...
...
@@ -793,7 +793,7 @@ void ui_actiondata(MSIPACKAGE *package, LPCWSTR action, MSIRECORD * record)
msiobj_release
(
&
row
->
hdr
);
}
BOOL
ACTION_VerifyComponentForAction
(
MSICOMPONENT
*
comp
,
INSTALLSTATE
check
)
BOOL
ACTION_VerifyComponentForAction
(
const
MSICOMPONENT
*
comp
,
INSTALLSTATE
check
)
{
if
(
!
comp
)
return
FALSE
;
...
...
@@ -807,7 +807,7 @@ BOOL ACTION_VerifyComponentForAction( MSICOMPONENT* comp, INSTALLSTATE check )
return
FALSE
;
}
BOOL
ACTION_VerifyFeatureForAction
(
MSIFEATURE
*
feature
,
INSTALLSTATE
check
)
BOOL
ACTION_VerifyFeatureForAction
(
const
MSIFEATURE
*
feature
,
INSTALLSTATE
check
)
{
if
(
!
feature
)
return
FALSE
;
...
...
@@ -969,7 +969,7 @@ UINT register_unique_action(MSIPACKAGE *package, LPCWSTR action)
return
ERROR_SUCCESS
;
}
BOOL
check_unique_action
(
MSIPACKAGE
*
package
,
LPCWSTR
action
)
BOOL
check_unique_action
(
const
MSIPACKAGE
*
package
,
LPCWSTR
action
)
{
INT
i
;
...
...
dlls/msi/insert.c
View file @
a0ae69a8
...
...
@@ -62,7 +62,7 @@ static UINT INSERT_fetch_int( struct tagMSIVIEW *view, UINT row, UINT col, UINT
* Merge a value_list and a record to create a second record.
* Replace wildcard entries in the valuelist with values from the record
*/
MSIRECORD
*
msi_query_merge_record
(
UINT
fields
,
column_info
*
vl
,
MSIRECORD
*
rec
)
MSIRECORD
*
msi_query_merge_record
(
UINT
fields
,
co
nst
co
lumn_info
*
vl
,
MSIRECORD
*
rec
)
{
MSIRECORD
*
merged
;
DWORD
wildcard_count
=
1
,
i
;
...
...
@@ -234,7 +234,7 @@ static const MSIVIEWOPS insert_ops =
INSERT_find_matching_rows
};
static
UINT
count_column_info
(
column_info
*
ci
)
static
UINT
count_column_info
(
co
nst
co
lumn_info
*
ci
)
{
UINT
n
=
0
;
for
(
;
ci
;
ci
=
ci
->
next
)
...
...
@@ -242,7 +242,7 @@ static UINT count_column_info( column_info *ci )
return
n
;
}
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LP
C
WSTR
table
,
column_info
*
columns
,
column_info
*
values
,
BOOL
temp
)
{
MSIINSERTVIEW
*
iv
=
NULL
;
...
...
dlls/msi/msi.c
View file @
a0ae69a8
...
...
@@ -1413,7 +1413,7 @@ INSTALLSTATE WINAPI MsiUseFeatureA( LPCSTR szProduct, LPCSTR szFeature )
* MSI_ProvideQualifiedComponentEx [internal]
*/
static
UINT
WINAPI
MSI_ProvideQualifiedComponentEx
(
LPCWSTR
szComponent
,
LPCWSTR
szQualifier
,
DWORD
dwInstallMode
,
LPWSTR
szProduct
,
LPCWSTR
szQualifier
,
DWORD
dwInstallMode
,
LP
C
WSTR
szProduct
,
DWORD
Unused1
,
DWORD
Unused2
,
awstring
*
lpPathBuf
,
DWORD
*
pcchPathBuf
)
{
...
...
dlls/msi/msipriv.h
View file @
a0ae69a8
...
...
@@ -587,7 +587,7 @@ extern UINT MSI_SetFeatureStates( MSIPACKAGE *package );
/* record internals */
extern
UINT
MSI_RecordSetIStream
(
MSIRECORD
*
,
unsigned
int
,
IStream
*
);
extern
UINT
MSI_RecordGetIStream
(
MSIRECORD
*
,
unsigned
int
,
IStream
**
);
extern
const
WCHAR
*
MSI_RecordGetString
(
MSIRECORD
*
,
unsigned
int
);
extern
const
WCHAR
*
MSI_RecordGetString
(
const
MSIRECORD
*
,
unsigned
int
);
extern
MSIRECORD
*
MSI_CreateRecord
(
unsigned
int
);
extern
UINT
MSI_RecordSetInteger
(
MSIRECORD
*
,
unsigned
int
,
int
);
extern
UINT
MSI_RecordSetStringW
(
MSIRECORD
*
,
unsigned
int
,
LPCWSTR
);
...
...
@@ -597,7 +597,7 @@ extern UINT MSI_RecordGetStringW( MSIRECORD * , unsigned int, LPWSTR, DWORD *);
extern
UINT
MSI_RecordGetStringA
(
MSIRECORD
*
,
unsigned
int
,
LPSTR
,
DWORD
*
);
extern
int
MSI_RecordGetInteger
(
MSIRECORD
*
,
unsigned
int
);
extern
UINT
MSI_RecordReadStream
(
MSIRECORD
*
,
unsigned
int
,
char
*
,
DWORD
*
);
extern
unsigned
int
MSI_RecordGetFieldCount
(
MSIRECORD
*
rec
);
extern
unsigned
int
MSI_RecordGetFieldCount
(
const
MSIRECORD
*
rec
);
extern
UINT
MSI_RecordSetStream
(
MSIRECORD
*
,
unsigned
int
,
IStream
*
);
extern
UINT
MSI_RecordDataSize
(
MSIRECORD
*
,
unsigned
int
);
extern
UINT
MSI_RecordStreamToFile
(
MSIRECORD
*
,
unsigned
int
,
LPCWSTR
);
...
...
@@ -634,7 +634,7 @@ extern UINT VIEW_find_column( MSIVIEW *, LPCWSTR, UINT * );
extern
UINT
MSI_SetInstallLevel
(
MSIPACKAGE
*
package
,
int
iInstallLevel
);
/* package internals */
extern
MSIPACKAGE
*
MSI_CreatePackage
(
MSIDATABASE
*
,
LPWSTR
);
extern
MSIPACKAGE
*
MSI_CreatePackage
(
MSIDATABASE
*
,
LP
C
WSTR
);
extern
UINT
MSI_OpenPackageW
(
LPCWSTR
szPackage
,
MSIPACKAGE
**
);
extern
UINT
MSI_SetTargetPathW
(
MSIPACKAGE
*
,
LPCWSTR
,
LPCWSTR
);
extern
UINT
MSI_SetPropertyW
(
MSIPACKAGE
*
,
LPCWSTR
,
LPCWSTR
);
...
...
@@ -770,14 +770,14 @@ extern void msi_free_action_script(MSIPACKAGE *package, UINT script);
extern
LPWSTR
build_icon_path
(
MSIPACKAGE
*
,
LPCWSTR
);
extern
LPWSTR
build_directory_name
(
DWORD
,
...);
extern
BOOL
create_full_pathW
(
const
WCHAR
*
path
);
extern
BOOL
ACTION_VerifyComponentForAction
(
MSICOMPONENT
*
,
INSTALLSTATE
);
extern
BOOL
ACTION_VerifyFeatureForAction
(
MSIFEATURE
*
,
INSTALLSTATE
);
extern
BOOL
ACTION_VerifyComponentForAction
(
const
MSICOMPONENT
*
,
INSTALLSTATE
);
extern
BOOL
ACTION_VerifyFeatureForAction
(
const
MSIFEATURE
*
,
INSTALLSTATE
);
extern
void
reduce_to_longfilename
(
WCHAR
*
);
extern
void
reduce_to_shortfilename
(
WCHAR
*
);
extern
LPWSTR
create_component_advertise_string
(
MSIPACKAGE
*
,
MSICOMPONENT
*
,
LPCWSTR
);
extern
void
ACTION_UpdateComponentStates
(
MSIPACKAGE
*
package
,
LPCWSTR
szFeature
);
extern
UINT
register_unique_action
(
MSIPACKAGE
*
,
LPCWSTR
);
extern
BOOL
check_unique_action
(
MSIPACKAGE
*
,
LPCWSTR
);
extern
BOOL
check_unique_action
(
const
MSIPACKAGE
*
,
LPCWSTR
);
extern
WCHAR
*
generate_error_string
(
MSIPACKAGE
*
,
UINT
,
DWORD
,
...
);
extern
UINT
msi_create_component_directories
(
MSIPACKAGE
*
package
);
extern
void
msi_ui_error
(
DWORD
msg_id
,
DWORD
type
);
...
...
dlls/msi/package.c
View file @
a0ae69a8
...
...
@@ -587,7 +587,7 @@ static MSIPACKAGE *msi_alloc_package( void )
return
package
;
}
MSIPACKAGE
*
MSI_CreatePackage
(
MSIDATABASE
*
db
,
LPWSTR
base_url
)
MSIPACKAGE
*
MSI_CreatePackage
(
MSIDATABASE
*
db
,
LP
C
WSTR
base_url
)
{
static
const
WCHAR
szLevel
[]
=
{
'U'
,
'I'
,
'L'
,
'e'
,
'v'
,
'e'
,
'l'
,
0
};
static
const
WCHAR
szpi
[]
=
{
'%'
,
'i'
,
0
};
...
...
dlls/msi/query.h
View file @
a0ae69a8
...
...
@@ -111,7 +111,7 @@ UINT WHERE_CreateView( MSIDATABASE *db, MSIVIEW **view, MSIVIEW *table,
UINT
CREATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
column_info
*
col_info
,
BOOL
hold
);
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LPWSTR
table
,
UINT
INSERT_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
view
,
LP
C
WSTR
table
,
column_info
*
columns
,
column_info
*
values
,
BOOL
temp
);
UINT
UPDATE_CreateView
(
MSIDATABASE
*
db
,
MSIVIEW
**
,
LPWSTR
table
,
...
...
@@ -128,7 +128,7 @@ UINT STREAMS_CreateView( MSIDATABASE *db, MSIVIEW **view );
int
sqliteGetToken
(
const
WCHAR
*
z
,
int
*
tokenType
);
MSIRECORD
*
msi_query_merge_record
(
UINT
fields
,
column_info
*
vl
,
MSIRECORD
*
rec
);
MSIRECORD
*
msi_query_merge_record
(
UINT
fields
,
co
nst
co
lumn_info
*
vl
,
MSIRECORD
*
rec
);
UINT
msi_create_table
(
MSIDATABASE
*
db
,
LPCWSTR
name
,
column_info
*
col_info
,
BOOL
persistent
,
MSITABLE
**
table_ret
);
...
...
dlls/msi/record.c
View file @
a0ae69a8
...
...
@@ -106,7 +106,7 @@ MSIHANDLE WINAPI MsiCreateRecord( unsigned int cParams )
return
ret
;
}
unsigned
int
MSI_RecordGetFieldCount
(
MSIRECORD
*
rec
)
unsigned
int
MSI_RecordGetFieldCount
(
const
MSIRECORD
*
rec
)
{
return
rec
->
count
;
}
...
...
@@ -393,7 +393,7 @@ UINT WINAPI MsiRecordGetStringA(MSIHANDLE handle, unsigned int iField,
return
ret
;
}
const
WCHAR
*
MSI_RecordGetString
(
MSIRECORD
*
rec
,
unsigned
int
iField
)
const
WCHAR
*
MSI_RecordGetString
(
const
MSIRECORD
*
rec
,
unsigned
int
iField
)
{
if
(
iField
>
rec
->
count
)
return
NULL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment