mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 20:30:01 +00:00
msi: Always check the return value of msi_string2idW.
This commit is contained in:
parent
2e1eb80c23
commit
2b2fa04ca4
@ -225,10 +225,12 @@ static UINT JOIN_get_column_info( struct tagMSIVIEW *view,
|
||||
static UINT join_find_row( MSIJOINVIEW *jv, MSIRECORD *rec, UINT *row )
|
||||
{
|
||||
LPCWSTR str;
|
||||
UINT i, id, data;
|
||||
UINT r, i, id, data;
|
||||
|
||||
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++)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
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 New Issue
Block a user