Commit 11b25a65 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msi: Fixed error reporting of add_streams_to_table.

parent f1a688a9
...@@ -439,7 +439,7 @@ static const MSIVIEWOPS streams_ops = ...@@ -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) ...@@ -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) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment