[PATCH 4/5] devenum: Get rid of the union in struct moniker.
Zebediah Figura
z.figura12 at gmail.com
Tue Apr 14 22:19:46 CDT 2020
From: Zebediah Figura <zfigura at codeweavers.com>
To avoid an invalid free in moniker_Release().
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/devenum/devenum_private.h | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/dlls/devenum/devenum_private.h b/dlls/devenum/devenum_private.h
index e0c693a2e95..43a5a0c50e1 100644
--- a/dlls/devenum/devenum_private.h
+++ b/dlls/devenum/devenum_private.h
@@ -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;
};
--
2.26.0
More information about the wine-devel
mailing list