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
890b5daf
Commit
890b5daf
authored
Jun 05, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Jun 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Check the correct pointers for allocation failure (Coverity).
parent
18738cf8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
database.c
dlls/msi/database.c
+3
-3
No files found.
dlls/msi/database.c
View file @
890b5daf
...
@@ -1371,7 +1371,7 @@ static UINT msi_get_table_labels(MSIDATABASE *db, LPCWSTR table, LPWSTR **labels
...
@@ -1371,7 +1371,7 @@ static UINT msi_get_table_labels(MSIDATABASE *db, LPCWSTR table, LPWSTR **labels
count
=
MSI_RecordGetFieldCount
(
prec
);
count
=
MSI_RecordGetFieldCount
(
prec
);
*
numlabels
=
count
+
1
;
*
numlabels
=
count
+
1
;
*
labels
=
msi_alloc
((
*
numlabels
)
*
sizeof
(
LPWSTR
));
*
labels
=
msi_alloc
((
*
numlabels
)
*
sizeof
(
LPWSTR
));
if
(
!
labels
)
if
(
!
*
labels
)
{
{
r
=
ERROR_OUTOFMEMORY
;
r
=
ERROR_OUTOFMEMORY
;
goto
end
;
goto
end
;
...
@@ -1399,7 +1399,7 @@ static UINT msi_get_query_columns(MSIQUERY *query, LPWSTR **columns, DWORD *numc
...
@@ -1399,7 +1399,7 @@ static UINT msi_get_query_columns(MSIQUERY *query, LPWSTR **columns, DWORD *numc
count
=
MSI_RecordGetFieldCount
(
prec
);
count
=
MSI_RecordGetFieldCount
(
prec
);
*
columns
=
msi_alloc
(
count
*
sizeof
(
LPWSTR
));
*
columns
=
msi_alloc
(
count
*
sizeof
(
LPWSTR
));
if
(
!
columns
)
if
(
!
*
columns
)
{
{
r
=
ERROR_OUTOFMEMORY
;
r
=
ERROR_OUTOFMEMORY
;
goto
end
;
goto
end
;
...
@@ -1428,7 +1428,7 @@ static UINT msi_get_query_types(MSIQUERY *query, LPWSTR **types, DWORD *numtypes
...
@@ -1428,7 +1428,7 @@ static UINT msi_get_query_types(MSIQUERY *query, LPWSTR **types, DWORD *numtypes
count
=
MSI_RecordGetFieldCount
(
prec
);
count
=
MSI_RecordGetFieldCount
(
prec
);
*
types
=
msi_alloc
(
count
*
sizeof
(
LPWSTR
));
*
types
=
msi_alloc
(
count
*
sizeof
(
LPWSTR
));
if
(
!
types
)
if
(
!
*
types
)
{
{
r
=
ERROR_OUTOFMEMORY
;
r
=
ERROR_OUTOFMEMORY
;
goto
end
;
goto
end
;
...
...
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