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
f2c207fa
Commit
f2c207fa
authored
Oct 20, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Reset the column number for each new table in a transform.
parent
1f32d1f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
table.c
dlls/msi/table.c
+16
-4
No files found.
dlls/msi/table.c
View file @
f2c207fa
...
...
@@ -1860,7 +1860,9 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
UINT
r
,
n
,
sz
,
i
,
mask
;
MSIRECORD
*
rec
=
NULL
;
UINT
colcol
=
0
;
WCHAR
coltable
[
32
];
coltable
[
0
]
=
0
;
TRACE
(
"%p %p %p %s
\n
"
,
db
,
stg
,
st
,
debugstr_w
(
name
)
);
/* read the transform data */
...
...
@@ -1937,10 +1939,20 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
*/
if
(
!
lstrcmpW
(
name
,
szColumns
))
{
if
(
MSI_RecordIsNull
(
rec
,
2
)
)
MSI_RecordSetInteger
(
rec
,
2
,
++
colcol
);
else
ERR
(
"_Columns has non-null data...
\n
"
);
WCHAR
table
[
32
];
DWORD
sz
=
32
;
MSI_RecordGetStringW
(
rec
,
1
,
table
,
&
sz
);
/* reset the column number on a new table */
if
(
lstrcmpW
(
coltable
,
table
)
)
{
colcol
=
0
;
lstrcpyW
(
coltable
,
table
);
}
/* fix nul column numbers */
MSI_RecordSetInteger
(
rec
,
2
,
++
colcol
);
}
r
=
TABLE_insert_row
(
&
tv
->
view
,
rec
);
...
...
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