Commit 3113d64f authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

wbemprox: Propagate create_view() error code from parser.

parent 1ba57ce5
...@@ -291,7 +291,10 @@ associatorsof: ...@@ -291,7 +291,10 @@ associatorsof:
hr = create_view( VIEW_TYPE_ASSOCIATORS, $3, NULL, NULL, NULL, NULL, &view ); hr = create_view( VIEW_TYPE_ASSOCIATORS, $3, NULL, NULL, NULL, NULL, &view );
if (hr != S_OK) if (hr != S_OK)
{
ctx->error = hr;
YYABORT; YYABORT;
}
PARSER_BUBBLE_UP_VIEW( parser, $$, view ); PARSER_BUBBLE_UP_VIEW( parser, $$, view );
} }
...@@ -303,7 +306,10 @@ associatorsof: ...@@ -303,7 +306,10 @@ associatorsof:
hr = create_view( VIEW_TYPE_ASSOCIATORS, $3, $5, NULL, NULL, NULL, &view ); hr = create_view( VIEW_TYPE_ASSOCIATORS, $3, $5, NULL, NULL, NULL, &view );
if (hr != S_OK) if (hr != S_OK)
{
ctx->error = hr;
YYABORT; YYABORT;
}
PARSER_BUBBLE_UP_VIEW( parser, $$, view ); PARSER_BUBBLE_UP_VIEW( parser, $$, view );
} }
...@@ -318,7 +324,10 @@ select: ...@@ -318,7 +324,10 @@ select:
hr = create_view( VIEW_TYPE_SELECT, NULL, NULL, $3, NULL, NULL, &view ); hr = create_view( VIEW_TYPE_SELECT, NULL, NULL, $3, NULL, NULL, &view );
if (hr != S_OK) if (hr != S_OK)
{
ctx->error = hr;
YYABORT; YYABORT;
}
PARSER_BUBBLE_UP_VIEW( parser, $$, view ); PARSER_BUBBLE_UP_VIEW( parser, $$, view );
} }
...@@ -330,7 +339,10 @@ select: ...@@ -330,7 +339,10 @@ select:
hr = create_view( VIEW_TYPE_SELECT, NULL, NULL, $4, $2, NULL, &view ); hr = create_view( VIEW_TYPE_SELECT, NULL, NULL, $4, $2, NULL, &view );
if (hr != S_OK) if (hr != S_OK)
{
ctx->error = hr;
YYABORT; YYABORT;
}
PARSER_BUBBLE_UP_VIEW( parser, $$, view ); PARSER_BUBBLE_UP_VIEW( parser, $$, view );
} }
...@@ -342,7 +354,10 @@ select: ...@@ -342,7 +354,10 @@ select:
hr = create_view( VIEW_TYPE_SELECT, NULL, NULL, $4, $2, $6, &view ); hr = create_view( VIEW_TYPE_SELECT, NULL, NULL, $4, $2, $6, &view );
if (hr != S_OK) if (hr != S_OK)
{
ctx->error = hr;
YYABORT; YYABORT;
}
PARSER_BUBBLE_UP_VIEW( parser, $$, view ); PARSER_BUBBLE_UP_VIEW( parser, $$, view );
} }
......
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