1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00

inetcomm: Allocate PROPVARIANT memory with CoTaskMemAlloc.

This commit is contained in:
Rémi Bernon 2022-12-02 01:30:13 +01:00 committed by Alexandre Julliard
parent 984969be56
commit 3c2ab50b09

View File

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