devenum: Get rid of the union in struct moniker.

To avoid an invalid free in moniker_Release().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-04-14 22:22:50 -05:00 committed by Alexandre Julliard
parent 8edbd2d3e8
commit 3ed689c0f2
1 changed files with 2 additions and 5 deletions

View File

@ -59,11 +59,8 @@ struct moniker
CLSID class;
BOOL has_class;
enum device_type type;
union
{
WCHAR *name; /* for filters and codecs */
CLSID clsid; /* for DMOs */
};
WCHAR *name; /* for filters and codecs */
CLSID clsid; /* for DMOs */
IPropertyBag IPropertyBag_iface;
};