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

This commit is contained in:
Robert Shearman 2006-03-31 12:46:56 +01:00 committed by Alexandre Julliard
parent 73ff576554
commit 4a67201b70
1 changed files with 1 additions and 6 deletions

View File

@ -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);