Module: wine Branch: refs/heads/master Commit: 4a67201b703d9d71f2b57d7d24ab3ed27071cf8a URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4a67201b703d9d71f2b57d7d...
Author: Robert Shearman rob@codeweavers.com Date: Fri Mar 31 12:46:56 2006 +0100
widl: Output NULL ref pointer check for pointer levels > 1 too.
---
tools/widl/client.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/tools/widl/client.c b/tools/widl/client.c index c9e99fb..ee8a625 100644 --- a/tools/widl/client.c +++ b/tools/widl/client.c @@ -105,7 +105,7 @@ static void check_pointers(const func_t
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 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);