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,
|
NULL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static UINT add_streams_to_table(MSISTREAMSVIEW *sv)
|
static INT add_streams_to_table(MSISTREAMSVIEW *sv)
|
||||||
{
|
{
|
||||||
IEnumSTATSTG *stgenum = NULL;
|
IEnumSTATSTG *stgenum = NULL;
|
||||||
STATSTG stat;
|
STATSTG stat;
|
||||||
|
@ -498,6 +498,7 @@ static UINT add_streams_to_table(MSISTREAMSVIEW *sv)
|
||||||
UINT STREAMS_CreateView(MSIDATABASE *db, MSIVIEW **view)
|
UINT STREAMS_CreateView(MSIDATABASE *db, MSIVIEW **view)
|
||||||
{
|
{
|
||||||
MSISTREAMSVIEW *sv;
|
MSISTREAMSVIEW *sv;
|
||||||
|
INT rows;
|
||||||
|
|
||||||
TRACE("(%p, %p)\n", db, view);
|
TRACE("(%p, %p)\n", db, view);
|
||||||
|
|
||||||
|
@ -507,10 +508,10 @@ UINT STREAMS_CreateView(MSIDATABASE *db, MSIVIEW **view)
|
||||||
|
|
||||||
sv->view.ops = &streams_ops;
|
sv->view.ops = &streams_ops;
|
||||||
sv->db = db;
|
sv->db = db;
|
||||||
sv->num_rows = add_streams_to_table(sv);
|
rows = add_streams_to_table(sv);
|
||||||
|
if (rows < 0)
|
||||||
if (sv->num_rows < 0)
|
|
||||||
return ERROR_FUNCTION_FAILED;
|
return ERROR_FUNCTION_FAILED;
|
||||||
|
sv->num_rows = rows;
|
||||||
|
|
||||||
*view = (MSIVIEW *)sv;
|
*view = (MSIVIEW *)sv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue