widl: Fix the is_array_type function.

Robert Shearman rob at codeweavers.com
Tue Jun 5 13:50:42 CDT 2007


Previously, an array of pointers wouldn't be detected by this function.
---
  tools/widl/header.h |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/tools/widl/header.h b/tools/widl/header.h
index 57ae6b4..2165db7 100644
--- a/tools/widl/header.h
+++ b/tools/widl/header.h
@@ -69,7 +69,7 @@ static inline int is_string_type(const a
 static inline int is_array_type(const attr_list_t *attrs, const type_t *type, const array_dims_t *array)
 {
     return ((last_ptr(type) && !array && is_attr(attrs, ATTR_SIZEIS)) ||
-            (!is_ptr(type) && array));
+            array);
 }
 
 #endif


More information about the wine-patches mailing list