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
d38ace6d
Commit
d38ace6d
authored
Jul 27, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Store table and column names in the string table.
parent
ae05ce45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
table.c
dlls/msi/table.c
+6
-2
No files found.
dlls/msi/table.c
View file @
d38ace6d
...
@@ -728,6 +728,7 @@ static UINT get_tablecolumns( MSIDATABASE *db, LPCWSTR szTableName, MSICOLUMNINF
...
@@ -728,6 +728,7 @@ static UINT get_tablecolumns( MSIDATABASE *db, LPCWSTR szTableName, MSICOLUMNINF
UINT
msi_create_table
(
MSIDATABASE
*
db
,
LPCWSTR
name
,
column_info
*
col_info
,
UINT
msi_create_table
(
MSIDATABASE
*
db
,
LPCWSTR
name
,
column_info
*
col_info
,
MSICONDITION
persistent
,
MSITABLE
**
table_ret
)
MSICONDITION
persistent
,
MSITABLE
**
table_ret
)
{
{
enum
StringPersistence
string_persistence
=
(
persistent
)
?
StringPersistent
:
StringNonPersistent
;
UINT
r
,
nField
;
UINT
r
,
nField
;
MSIVIEW
*
tv
=
NULL
;
MSIVIEW
*
tv
=
NULL
;
MSIRECORD
*
rec
=
NULL
;
MSIRECORD
*
rec
=
NULL
;
...
@@ -767,9 +768,12 @@ UINT msi_create_table( MSIDATABASE *db, LPCWSTR name, column_info *col_info,
...
@@ -767,9 +768,12 @@ UINT msi_create_table( MSIDATABASE *db, LPCWSTR name, column_info *col_info,
for
(
i
=
0
,
col
=
col_info
;
col
;
i
++
,
col
=
col
->
next
)
for
(
i
=
0
,
col
=
col_info
;
col
;
i
++
,
col
=
col
->
next
)
{
{
table
->
colinfo
[
i
].
tablename
=
strdupW
(
col
->
table
);
UINT
table_id
=
msi_addstringW
(
db
->
strings
,
col
->
table
,
-
1
,
1
,
string_persistence
);
UINT
col_id
=
msi_addstringW
(
db
->
strings
,
col
->
column
,
-
1
,
1
,
string_persistence
);
table
->
colinfo
[
i
].
tablename
=
msi_string_lookup_id
(
db
->
strings
,
table_id
);
table
->
colinfo
[
i
].
number
=
i
+
1
;
table
->
colinfo
[
i
].
number
=
i
+
1
;
table
->
colinfo
[
i
].
colname
=
strdupW
(
col
->
column
);
table
->
colinfo
[
i
].
colname
=
msi_string_lookup_id
(
db
->
strings
,
col_id
);
table
->
colinfo
[
i
].
type
=
col
->
type
;
table
->
colinfo
[
i
].
type
=
col
->
type
;
table
->
colinfo
[
i
].
offset
=
0
;
table
->
colinfo
[
i
].
offset
=
0
;
table
->
colinfo
[
i
].
ref_count
=
0
;
table
->
colinfo
[
i
].
ref_count
=
0
;
...
...
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