Nikolay Sivov : mfplat: Do not make a copy when setting GUID attribute (Valgrind).

Alexandre Julliard julliard at winehq.org
Tue Nov 26 16:21:24 CST 2019


Module: wine
Branch: master
Commit: 3c32b3c16edd0fce9c0624c847ffbd0ee2f5334b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=3c32b3c16edd0fce9c0624c847ffbd0ee2f5334b

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Tue Nov 26 13:35:30 2019 +0300

mfplat: Do not make a copy when setting GUID attribute (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);
 }
 




More information about the wine-cvs mailing list