Imported from libpng-1.4.0beta15.tar

This commit is contained in:
Glenn Randers-Pehrson
2006-11-16 20:35:49 -06:00
parent 6b12c08bfc
commit ae4bd5c2be
46 changed files with 4564 additions and 4288 deletions

View File

@@ -498,9 +498,10 @@ png_voidp PNGAPI
png_malloc_warn(png_structp png_ptr, png_alloc_size_t size)
{
png_voidp ptr;
png_uint_32 save_flags;
if(png_ptr == NULL) return (NULL);
png_uint_32 save_flags=png_ptr->flags;
save_flags=png_ptr->flags;
png_ptr->flags|=PNG_FLAG_MALLOC_NULL_MEM_OK;
ptr = (png_voidp)png_malloc((png_structp)png_ptr, size);
png_ptr->flags=save_flags;