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
1b256f2c
Commit
1b256f2c
authored
Oct 12, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Improve error checking when applying transform data.
parent
6a9222fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
15 deletions
+20
-15
table.c
dlls/msi/table.c
+20
-15
No files found.
dlls/msi/table.c
View file @
1b256f2c
...
...
@@ -1900,13 +1900,9 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
rec
=
msi_get_transform_record
(
tv
,
st
,
&
rawdata
[
n
]
);
if
(
rec
)
{
UINT
row
=
0
;
r
=
msi_table_find_row
(
tv
,
rec
,
&
row
);
if
(
rawdata
[
n
]
&
1
)
if
(
mask
&
1
)
{
TRACE
(
"insert
[%d]:
\n
"
,
row
);
TRACE
(
"insert
ing record
\n
"
);
/*
* Native msi seems writes nul into the
...
...
@@ -1921,24 +1917,33 @@ static UINT msi_table_load_transform( MSIDATABASE *db, IStorage *stg,
ERR
(
"_Columns has non-null data...
\n
"
);
}
TABLE_insert_row
(
&
tv
->
view
,
rec
);
}
else
if
(
mask
&
0xff
)
{
TRACE
(
"modify [%d]:
\n
"
,
row
);
msi_table_modify_row
(
tv
,
rec
,
row
,
mask
);
r
=
TABLE_insert_row
(
&
tv
->
view
,
rec
);
if
(
r
!=
ERROR_SUCCESS
)
ERR
(
"insert row failed
\n
"
);
}
else
{
TRACE
(
"delete [%d]:
\n
"
,
row
);
msi_delete_row
(
tv
,
row
);
UINT
row
=
0
;
r
=
msi_table_find_row
(
tv
,
rec
,
&
row
);
if
(
r
!=
ERROR_SUCCESS
)
ERR
(
"no matching row to transform
\n
"
);
else
if
(
mask
)
{
TRACE
(
"modifying row [%d]:
\n
"
,
row
);
msi_table_modify_row
(
tv
,
rec
,
row
,
mask
);
}
else
{
TRACE
(
"deleting row [%d]:
\n
"
,
row
);
msi_delete_row
(
tv
,
row
);
}
}
if
(
TRACE_ON
(
msidb
)
)
dump_record
(
rec
);
msiobj_release
(
&
rec
->
hdr
);
}
n
+=
sz
/
2
;
}
err:
...
...
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