From 6e27e7840f49253f068fb175faf25e42a949ad77 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sun, 20 Apr 2008 22:15:06 +0100 Subject: [PATCH] widl: Stop looping in check_remoting_args when a context_handle or wire_marshal type is found as they are in effect fundamental types. --- tools/widl/parser.y | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 45471bb7ff4..d4ba87a72a0 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -2376,9 +2376,15 @@ static void check_remoting_args(const func_t *func) for (;;) { if (!is_wire_marshal && is_attr(type->attrs, ATTR_WIREMARSHAL)) + { is_wire_marshal = 1; + break; + } if (!is_context_handle && is_attr(type->attrs, ATTR_CONTEXTHANDLE)) + { is_context_handle = 1; + break; + } if (type->kind == TKIND_ALIAS) type = type->orig; else if (is_ptr(type))