Commit 901366e3 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

windowscodecs: Copy container_count GUIDs, not bytes, in GetContainerFormats.

parent c0ca6913
...@@ -1658,7 +1658,7 @@ static HRESULT WINAPI MetadataReaderInfo_GetContainerFormats(IWICMetadataReaderI ...@@ -1658,7 +1658,7 @@ static HRESULT WINAPI MetadataReaderInfo_GetContainerFormats(IWICMetadataReaderI
{ {
if (This->container_count && length < This->container_count) if (This->container_count && length < This->container_count)
return WINCODEC_ERR_INSUFFICIENTBUFFER; return WINCODEC_ERR_INSUFFICIENTBUFFER;
memcpy(formats, This->container_formats, This->container_count); memcpy(formats, This->container_formats, This->container_count * sizeof(*formats));
} }
return S_OK; return S_OK;
} }
......
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