[PATCH 2/3] mfplat: Do not make a copy when setting GUID attribute (Valgrind).
Nikolay Sivov
nsivov at codeweavers.com
Tue Nov 26 04:35:30 CST 2019
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/mfplat/main.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/mfplat/main.c b/dlls/mfplat/main.c
index 6336b1b347..e4ade7f202 100644
--- a/dlls/mfplat/main.c
+++ b/dlls/mfplat/main.c
@@ -1651,7 +1651,8 @@ HRESULT attributes_SetGUID(struct attributes *attributes, REFGUID key, REFGUID v
{
PROPVARIANT attrval;
- InitPropVariantFromCLSID(value, &attrval);
+ attrval.vt = VT_CLSID;
+ attrval.u.puuid = (CLSID *)value;
return attributes_set_item(attributes, key, &attrval);
}
--
2.24.0
More information about the wine-devel
mailing list