[master] Fixed deprecated usages in contrib directory.

This commit is contained in:
Glenn Randers-Pehrson
2009-11-09 10:47:12 -06:00
parent 3130af0e2b
commit 7aacd895ee
6 changed files with 13 additions and 6 deletions

View File

@@ -126,7 +126,7 @@ BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
// first check the eight byte PNG signature
fread(pbSig, 1, 8, pfFile);
if (!png_check_sig(pbSig, 8))
if (png_sig_cmp(pbSig, 0, 8))
{
*ppbImageData = pbImageData = NULL;
return FALSE;