[2/2] windowscodecs: Add a comment to PNG decoder that Windows ignores CRC of the chunks.
Dmitry Timoshkov
dmitry at baikal.ru
Wed Mar 6 01:29:20 CST 2013
While creating a PNG image with PLTE+tRNS chunks I've written a helper to
check PNG image structure including CRC of chunks, but that proved to be
not needed, because Windows loaded manually created PNG images with wrong
chunk CRCs just fine.
---
dlls/windowscodecs/pngformat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index e4236e2..fb8bf51 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -76,7 +76,7 @@ static HRESULT read_png_chunk(IStream *stream, BYTE *type, BYTE **data, ULONG *d
return hr;
}
- /* FIXME: Verify the CRC? */
+ /* Windows ignores CRC of the chunk */
}
return S_OK;
--
1.8.1.3
More information about the wine-patches
mailing list