[PATCH 2/2] windowscodecs: Fix allocation in tiff_decoder_get_metadata_blocks.
Esme Povirk
esme at codeweavers.com
Tue Nov 17 14:06:45 CST 2020
Signed-off-by: Esme Povirk <esme at codeweavers.com>
---
dlls/windowscodecs/libtiff.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/windowscodecs/libtiff.c b/dlls/windowscodecs/libtiff.c
index 27f89679766..7f174bbd5dd 100644
--- a/dlls/windowscodecs/libtiff.c
+++ b/dlls/windowscodecs/libtiff.c
@@ -1127,7 +1127,7 @@ static HRESULT CDECL tiff_decoder_get_metadata_blocks(struct decoder *iface,
result.options |= WICPersistOptionNoCacheStream|DECODER_BLOCK_FULL_STREAM|DECODER_BLOCK_READER_CLSID;
result.reader_clsid = CLSID_WICIfdMetadataReader;
- *blocks = malloc(sizeof(**blocks));
+ *blocks = RtlAllocateHeap(GetProcessHeap(), 0, sizeof(**blocks));
**blocks = result;
return S_OK;
--
2.17.1
More information about the wine-devel
mailing list