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:
parent
984969be56
commit
3c2ab50b09
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user