Commit 4a67201b authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

widl: Output NULL ref pointer check for pointer levels > 1 too.

parent 73ff5765
......@@ -105,7 +105,7 @@ static void check_pointers(const func_t *func)
if (pointer_type == RPC_FC_RP)
{
if (var->ptr_level == 1)
if (var->ptr_level >= 1)
{
print_client("if (!%s)\n", var->name);
print_client("{\n");
......@@ -114,11 +114,6 @@ static void check_pointers(const func_t *func)
indent--;
print_client("}\n\n");
}
else if (var->ptr_level > 1)
{
error("Pointer level %d not supported!\n", var->ptr_level);
return;
}
}
var = PREV_LINK(var);
......
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