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
e601ef55
Commit
e601ef55
authored
Jul 07, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Check the return value of MSI_IterateRecords (clang).
parent
4686efd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
dialog.c
dlls/msi/dialog.c
+10
-7
No files found.
dlls/msi/dialog.c
View file @
e601ef55
...
...
@@ -383,7 +383,6 @@ static UINT msi_dialog_build_font_list( msi_dialog *dialog )
r
=
MSI_IterateRecords
(
view
,
NULL
,
msi_dialog_add_font
,
dialog
);
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
...
...
@@ -1495,13 +1494,16 @@ static UINT msi_combobox_add_items( struct msi_combobox_info *info, LPCWSTR prop
/* just get the number of records */
count
=
0
;
r
=
MSI_IterateRecords
(
view
,
&
count
,
NULL
,
NULL
);
if
(
r
!=
ERROR_SUCCESS
)
{
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
info
->
num_items
=
count
;
info
->
items
=
msi_alloc
(
sizeof
(
*
info
->
items
)
*
count
);
r
=
MSI_IterateRecords
(
view
,
NULL
,
msi_combobox_add_item
,
info
);
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
...
...
@@ -2328,7 +2330,6 @@ static UINT msi_dialog_radiogroup_control( msi_dialog *dialog, MSIRECORD *rec )
r
=
MSI_IterateRecords
(
view
,
0
,
msi_dialog_create_radiobutton
,
&
group
);
msiobj_release
(
&
view
->
hdr
);
msi_free
(
group
.
propval
);
return
r
;
}
...
...
@@ -2781,13 +2782,16 @@ static UINT msi_listbox_add_items( struct msi_listbox_info *info, LPCWSTR proper
/* just get the number of records */
count
=
0
;
r
=
MSI_IterateRecords
(
view
,
&
count
,
NULL
,
NULL
);
if
(
r
!=
ERROR_SUCCESS
)
{
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
info
->
num_items
=
count
;
info
->
items
=
msi_alloc
(
sizeof
(
*
info
->
items
)
*
count
);
r
=
MSI_IterateRecords
(
view
,
NULL
,
msi_listbox_add_item
,
info
);
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
...
...
@@ -3378,7 +3382,6 @@ static UINT msi_dialog_fill_controls( msi_dialog *dialog )
r
=
MSI_IterateRecords
(
view
,
0
,
msi_dialog_create_controls
,
dialog
);
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
...
...
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