Author: cwittich
Date: Sun Mar 21 20:02:37 2010
New Revision: 46311
URL:
http://svn.reactos.org/svn/reactos?rev=46311&view=rev
Log:
[QUARTZ]
sync quartz with wine 1.1.41
Modified:
trunk/reactos/dll/directx/quartz/filtermapper.c
Modified: trunk/reactos/dll/directx/quartz/filtermapper.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/quartz/filterm…
==============================================================================
--- trunk/reactos/dll/directx/quartz/filtermapper.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/quartz/filtermapper.c [iso-8859-1] Sun Mar 21 20:02:37 2010
@@ -479,11 +479,16 @@
static HRESULT FM2_WriteFriendlyName(IPropertyBag * pPropBag, LPCWSTR szName)
{
VARIANT var;
+ HRESULT ret;
+ BSTR value;
V_VT(&var) = VT_BSTR;
- V_UNION(&var, bstrVal) = (BSTR)szName;
-
- return IPropertyBag_Write(pPropBag, wszFriendlyName, &var);
+ V_UNION(&var, bstrVal) = value = SysAllocString(szName);
+
+ ret = IPropertyBag_Write(pPropBag, wszFriendlyName, &var);
+ SysFreeString(value);
+
+ return ret;
}
static HRESULT FM2_WriteClsid(IPropertyBag * pPropBag, REFCLSID clsid)