Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
ff40f3d2
Commit
ff40f3d2
authored
Apr 26, 2007
by
Marcus Meissner
Committed by
Alexandre Julliard
Apr 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Do not mark the tables const.
parent
09208ca4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
table.c
dlls/msi/table.c
+7
-4
No files found.
dlls/msi/table.c
View file @
ff40f3d2
...
@@ -91,13 +91,16 @@ static const WCHAR szColumns[] = { '_','C','o','l','u','m','n','s',0 };
...
@@ -91,13 +91,16 @@ static const WCHAR szColumns[] = { '_','C','o','l','u','m','n','s',0 };
static
const
WCHAR
szNumber
[]
=
{
'N'
,
'u'
,
'm'
,
'b'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
szNumber
[]
=
{
'N'
,
'u'
,
'm'
,
'b'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
szType
[]
=
{
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
szType
[]
=
{
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
MSICOLUMNINFO
_Columns_cols
[
4
]
=
{
/* These tables are written into (the .hash_table part).
* Do not mark them const.
*/
static
MSICOLUMNINFO
_Columns_cols
[
4
]
=
{
{
szColumns
,
1
,
szTable
,
MSITYPE_VALID
|
MSITYPE_STRING
|
64
,
0
},
{
szColumns
,
1
,
szTable
,
MSITYPE_VALID
|
MSITYPE_STRING
|
64
,
0
},
{
szColumns
,
2
,
szNumber
,
MSITYPE_VALID
|
2
,
2
},
{
szColumns
,
2
,
szNumber
,
MSITYPE_VALID
|
2
,
2
},
{
szColumns
,
3
,
szName
,
MSITYPE_VALID
|
MSITYPE_STRING
|
64
,
4
},
{
szColumns
,
3
,
szName
,
MSITYPE_VALID
|
MSITYPE_STRING
|
64
,
4
},
{
szColumns
,
4
,
szType
,
MSITYPE_VALID
|
2
,
6
},
{
szColumns
,
4
,
szType
,
MSITYPE_VALID
|
2
,
6
},
};
};
static
const
MSICOLUMNINFO
_Tables_cols
[
1
]
=
{
static
MSICOLUMNINFO
_Tables_cols
[
1
]
=
{
{
szTables
,
1
,
szName
,
MSITYPE_VALID
|
MSITYPE_STRING
|
64
,
0
},
{
szTables
,
1
,
szName
,
MSITYPE_VALID
|
MSITYPE_STRING
|
64
,
0
},
};
};
...
@@ -780,12 +783,12 @@ static UINT get_table( MSIDATABASE *db, LPCWSTR name, MSITABLE **table_ret )
...
@@ -780,12 +783,12 @@ static UINT get_table( MSIDATABASE *db, LPCWSTR name, MSITABLE **table_ret )
/* these two tables are special - we know the column types already */
/* these two tables are special - we know the column types already */
if
(
!
lstrcmpW
(
name
,
szColumns
)
)
if
(
!
lstrcmpW
(
name
,
szColumns
)
)
{
{
table
->
colinfo
=
(
MSICOLUMNINFO
*
)
_Columns_cols
;
table
->
colinfo
=
_Columns_cols
;
table
->
col_count
=
sizeof
(
_Columns_cols
)
/
sizeof
(
_Columns_cols
[
0
]);
table
->
col_count
=
sizeof
(
_Columns_cols
)
/
sizeof
(
_Columns_cols
[
0
]);
}
}
else
if
(
!
lstrcmpW
(
name
,
szTables
)
)
else
if
(
!
lstrcmpW
(
name
,
szTables
)
)
{
{
table
->
colinfo
=
(
MSICOLUMNINFO
*
)
_Tables_cols
;
table
->
colinfo
=
_Tables_cols
;
table
->
col_count
=
sizeof
(
_Tables_cols
)
/
sizeof
(
_Tables_cols
[
0
]);
table
->
col_count
=
sizeof
(
_Tables_cols
)
/
sizeof
(
_Tables_cols
[
0
]);
}
}
else
else
...
...
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