[PATCH] windowscodecs: Copy container_count GUIDs, not bytes, in GetContainerFormats.
Signed-off-by: Rémi Bernon <rbernon(a)codeweavers.com> --- It seems to be an obvious typo, although I'm not aware of any bug caused by it. dlls/windowscodecs/info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c index db6d25b46b3..cbe8aae572d 100644 --- a/dlls/windowscodecs/info.c +++ b/dlls/windowscodecs/info.c @@ -1658,7 +1658,7 @@ static HRESULT WINAPI MetadataReaderInfo_GetContainerFormats(IWICMetadataReaderI { if (This->container_count && length < This->container_count) 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; } -- 2.29.2
participants (2)
-
Esme Povirk (they/them) -
Rémi Bernon