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
b13803ea
Commit
b13803ea
authored
Dec 07, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Free the column info data when updating the table column info.
parent
c2090231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
table.c
dlls/msi/table.c
+11
-3
No files found.
dlls/msi/table.c
View file @
b13803ea
...
...
@@ -1042,17 +1042,22 @@ static UINT get_tablecolumns( MSIDATABASE *db,
static
void
msi_update_table_columns
(
MSIDATABASE
*
db
,
LPCWSTR
name
)
{
MSITABLE
*
table
;
LPWSTR
tablename
;
UINT
size
,
offset
,
old_count
;
UINT
n
;
table
=
find_cached_table
(
db
,
name
);
/* We may free name in msi_free_colinfo. */
tablename
=
strdupW
(
name
);
table
=
find_cached_table
(
db
,
tablename
);
old_count
=
table
->
col_count
;
msi_free_colinfo
(
table
->
colinfo
,
table
->
col_count
);
msi_free
(
table
->
colinfo
);
table
->
colinfo
=
NULL
;
table_get_column_info
(
db
,
name
,
&
table
->
colinfo
,
&
table
->
col_count
);
table_get_column_info
(
db
,
table
name
,
&
table
->
colinfo
,
&
table
->
col_count
);
if
(
!
table
->
col_count
)
return
;
goto
done
;
size
=
msi_table_get_row_size
(
db
,
table
->
colinfo
,
table
->
col_count
);
offset
=
table
->
colinfo
[
table
->
col_count
-
1
].
offset
;
...
...
@@ -1063,6 +1068,9 @@ static void msi_update_table_columns( MSIDATABASE *db, LPCWSTR name )
if
(
old_count
<
table
->
col_count
)
memset
(
&
table
->
data
[
n
][
offset
],
0
,
size
-
offset
);
}
done:
msi_free
(
tablename
);
}
/* try to find the table name in the _Tables table */
...
...
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