mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
msi: Check return value of msi_string2idW (Coverity).
This commit is contained in:
parent
bd70b79125
commit
ee12b4feed
1 changed files with 4 additions and 2 deletions
|
@ -296,10 +296,12 @@ static UINT STREAMS_get_column_info( struct tagMSIVIEW *view, UINT n, LPCWSTR *n
|
|||
static UINT streams_find_row(MSISTREAMSVIEW *sv, MSIRECORD *rec, UINT *row)
|
||||
{
|
||||
LPCWSTR str;
|
||||
UINT i, id, data;
|
||||
UINT r, i, id, data;
|
||||
|
||||
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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue