widl: Check for user types when calculating buffer size.
This commit is contained in:
parent
fcebe48cad
commit
ab22b4b3d4
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue