mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
inetcomm: Allocate PROPVARIANT memory with CoTaskMemAlloc.
This commit is contained in:
parent
984969be56
commit
3c2ab50b09
|
@ -1089,7 +1089,8 @@ static HRESULT WINAPI MimeBody_GetProp(
|
||||||
{
|
{
|
||||||
PropVariantClear(pValue);
|
PropVariantClear(pValue);
|
||||||
pValue->vt = VT_LPSTR;
|
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;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue