From a513ff4926ba1862b19cd7e342ccbea14f4232f8 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Sat, 8 Dec 2007 17:13:45 +0000 Subject: [PATCH] widl: Don't override the pointer type in top-level arrays. --- tools/widl/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/widl/parser.y b/tools/widl/parser.y index 3d643c1a15a..06f00352ad2 100644 --- a/tools/widl/parser.y +++ b/tools/widl/parser.y @@ -1329,7 +1329,7 @@ static void set_type(var_t *v, type_t *type, int ptr_level, array_dims_t *arr, } } - if (ptr_type) + if (ptr_type && !arr) { if (is_ptr(v->type)) {