[PATCH 0/1] MR1655: inetcomm: Allocate PROPVARIANT memory with CoTaskMemAlloc.
2 Dec
2 Dec
8:05 a.m.
New subject: [PATCH 1/1] inetcomm: Allocate PROPVARIANT memory with CoTaskMemAlloc.
From: Rémi Bernon <rbernon(a)codeweavers.com> --- dlls/inetcomm/mimeole.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c index ceacf5ded42..232e09aa075 100644 --- a/dlls/inetcomm/mimeole.c +++ b/dlls/inetcomm/mimeole.c @@ -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; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/1655
1189
Age (days ago)
1189
Last active (days ago)
1 comments
1 participants
participants (1)
-
Rémi Bernon