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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2019-11-26 13:35:30 +03:00 committed by Alexandre Julliard
parent c091f9b7f6
commit 3c32b3c16e
1 changed files with 2 additions and 1 deletions

View File

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