widl: Check for user types when calculating buffer size.

oldstable
Dan Hipschman 2007-06-25 18:23:33 -07:00 committed by Alexandre Julliard
parent fcebe48cad
commit ab22b4b3d4
1 changed files with 7 additions and 1 deletions

View File

@ -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)
{