Commit 53f0a25e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplat: Fix early return from GetString() (Coverity).

parent 63352b5c
......@@ -1260,9 +1260,9 @@ HRESULT attributes_GetString(struct attributes *attributes, REFGUID key, WCHAR *
*length = len;
if (size <= len)
return STRSAFE_E_INSUFFICIENT_BUFFER;
memcpy(value, attribute->value.u.pwszVal, (len + 1) * sizeof(WCHAR));
hr = STRSAFE_E_INSUFFICIENT_BUFFER;
else
memcpy(value, attribute->value.u.pwszVal, (len + 1) * sizeof(WCHAR));
}
else
hr = MF_E_INVALIDTYPE;
......
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