widl: Output NULL ref pointer check for pointer levels > 1 too.
This commit is contained in:
parent
73ff576554
commit
4a67201b70
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue