Commit da550ed2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

quartz: Don't cast WSTR to BSTR, convert properly instead.

parent c8cd1502
......@@ -479,11 +479,16 @@ static HRESULT WINAPI FilterMapper2_UnregisterFilter(
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;
V_UNION(&var, bstrVal) = value = SysAllocString(szName);
return IPropertyBag_Write(pPropBag, wszFriendlyName, &var);
ret = IPropertyBag_Write(pPropBag, wszFriendlyName, &var);
SysFreeString(value);
return ret;
}
static HRESULT FM2_WriteClsid(IPropertyBag * pPropBag, REFCLSID clsid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment