Commit ab22b4b3 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

widl: Check for user types when calculating buffer size.

parent fcebe48c
......@@ -2101,7 +2101,13 @@ static unsigned int get_required_buffer_size_type(
size_t size = 0;
*alignment = 0;
if (!is_ptr(type))
if (is_user_type(type))
{
const char *uname;
const type_t *utype = get_user_type(type, &uname);
size = get_required_buffer_size_type(utype, uname, alignment);
}
else if (!is_ptr(type))
{
switch (type->type)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment