[PATCH] windowscodecs: Copy container_count GUIDs, not bytes, in GetContainerFormats.
Rémi Bernon
rbernon at codeweavers.com
Tue Jan 5 11:40:00 CST 2021
Signed-off-by: Rémi Bernon <rbernon at 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
More information about the wine-devel
mailing list