Commit 3c2ab50b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

inetcomm: Allocate PROPVARIANT memory with CoTaskMemAlloc.

parent 984969be
......@@ -1089,7 +1089,8 @@ static HRESULT WINAPI MimeBody_GetProp(
{
PropVariantClear(pValue);
pValue->vt = VT_LPSTR;
pValue->pszVal = strdup(This->content_pri_type);
pValue->pszVal = CoTaskMemAlloc(strlen(This->content_pri_type) + 1);
strcpy(pValue->pszVal, This->content_pri_type);
return S_OK;
}
......
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