From 4a67201b703d9d71f2b57d7d24ab3ed27071cf8a Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 31 Mar 2006 12:46:56 +0100 Subject: [PATCH] widl: Output NULL ref pointer check for pointer levels > 1 too. --- tools/widl/client.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/widl/client.c b/tools/widl/client.c index c9e99fbc3b4..ee8a625fcea 100644 --- a/tools/widl/client.c +++ b/tools/widl/client.c @@ -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);