msi: Fixed error reporting of add_streams_to_table.
This commit is contained in:
parent
f1a688a946
commit
11b25a65ac
|
@ -439,7 +439,7 @@ static const MSIVIEWOPS streams_ops =
|
|||
NULL,
|
||||
};
|
||||
|
||||
static UINT add_streams_to_table(MSISTREAMSVIEW *sv)
|
||||
static INT add_streams_to_table(MSISTREAMSVIEW *sv)
|
||||
{
|
||||
IEnumSTATSTG *stgenum = NULL;
|
||||
STATSTG stat;
|
||||
|
@ -498,6 +498,7 @@ static UINT add_streams_to_table(MSISTREAMSVIEW *sv)
|
|||
UINT STREAMS_CreateView(MSIDATABASE *db, MSIVIEW **view)
|
||||
{
|
||||
MSISTREAMSVIEW *sv;
|
||||
INT rows;
|
||||
|
||||
TRACE("(%p, %p)\n", db, view);
|
||||
|
||||
|
@ -507,10 +508,10 @@ UINT STREAMS_CreateView(MSIDATABASE *db, MSIVIEW **view)
|
|||
|
||||
sv->view.ops = &streams_ops;
|
||||
sv->db = db;
|
||||
sv->num_rows = add_streams_to_table(sv);
|
||||
|
||||
if (sv->num_rows < 0)
|
||||
rows = add_streams_to_table(sv);
|
||||
if (rows < 0)
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
sv->num_rows = rows;
|
||||
|
||||
*view = (MSIVIEW *)sv;
|
||||
|
||||
|
|
Loading…
Reference in New Issue