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
2b2fa04c
Commit
2b2fa04c
authored
Sep 29, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Always check the return value of msi_string2idW.
parent
2e1eb80c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
join.c
dlls/msi/join.c
+4
-2
storages.c
dlls/msi/storages.c
+4
-2
No files found.
dlls/msi/join.c
View file @
2b2fa04c
...
@@ -225,10 +225,12 @@ static UINT JOIN_get_column_info( struct tagMSIVIEW *view,
...
@@ -225,10 +225,12 @@ static UINT JOIN_get_column_info( struct tagMSIVIEW *view,
static
UINT
join_find_row
(
MSIJOINVIEW
*
jv
,
MSIRECORD
*
rec
,
UINT
*
row
)
static
UINT
join_find_row
(
MSIJOINVIEW
*
jv
,
MSIRECORD
*
rec
,
UINT
*
row
)
{
{
LPCWSTR
str
;
LPCWSTR
str
;
UINT
i
,
id
,
data
;
UINT
r
,
i
,
id
,
data
;
str
=
MSI_RecordGetString
(
rec
,
1
);
str
=
MSI_RecordGetString
(
rec
,
1
);
msi_string2idW
(
jv
->
db
->
strings
,
str
,
&
id
);
r
=
msi_string2idW
(
jv
->
db
->
strings
,
str
,
&
id
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
for
(
i
=
0
;
i
<
jv
->
rows
;
i
++
)
for
(
i
=
0
;
i
<
jv
->
rows
;
i
++
)
{
{
...
...
dlls/msi/storages.c
View file @
2b2fa04c
...
@@ -334,10 +334,12 @@ static UINT STORAGES_get_column_info(struct tagMSIVIEW *view, UINT n,
...
@@ -334,10 +334,12 @@ static UINT STORAGES_get_column_info(struct tagMSIVIEW *view, UINT n,
static
UINT
storages_find_row
(
MSISTORAGESVIEW
*
sv
,
MSIRECORD
*
rec
,
UINT
*
row
)
static
UINT
storages_find_row
(
MSISTORAGESVIEW
*
sv
,
MSIRECORD
*
rec
,
UINT
*
row
)
{
{
LPCWSTR
str
;
LPCWSTR
str
;
UINT
i
,
id
,
data
;
UINT
r
,
i
,
id
,
data
;
str
=
MSI_RecordGetString
(
rec
,
1
);
str
=
MSI_RecordGetString
(
rec
,
1
);
msi_string2idW
(
sv
->
db
->
strings
,
str
,
&
id
);
r
=
msi_string2idW
(
sv
->
db
->
strings
,
str
,
&
id
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
for
(
i
=
0
;
i
<
sv
->
num_rows
;
i
++
)
for
(
i
=
0
;
i
<
sv
->
num_rows
;
i
++
)
{
{
...
...
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