Zebediah Figura : widl: Also compute buffer size for non-ref arrays.
Alexandre Julliard
julliard at winehq.org
Mon Oct 7 17:02:14 CDT 2019
Module: wine
Branch: master
Commit: 8746bf094f87c2cd389e94bd76866f3884fb6b20
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8746bf094f87c2cd389e94bd76866f3884fb6b20
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Fri Oct 4 23:43:36 2019 -0500
widl: Also compute buffer size for non-ref arrays.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47886
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tools/widl/typegen.c | 15 ++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index c4ccd99771..f37c7b0d67 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -3865,16 +3865,13 @@ static unsigned int get_required_buffer_size_type(
}
case TGT_ARRAY:
- if (get_pointer_fc(type, attrs, toplevel_param) == FC_RP)
+ switch (get_array_fc(type))
{
- switch (get_array_fc(type))
- {
- case FC_SMFARRAY:
- case FC_LGFARRAY:
- return type_array_get_dim(type) *
- get_required_buffer_size_type(type_array_get_element_type(type), name,
- NULL, FALSE, alignment);
- }
+ case FC_SMFARRAY:
+ case FC_LGFARRAY:
+ return type_array_get_dim(type) *
+ get_required_buffer_size_type(type_array_get_element_type(type), name,
+ NULL, FALSE, alignment);
}
break;
More information about the wine-cvs
mailing list