Imported from libpng-1.4.0beta32.tar

This commit is contained in:
Glenn Randers-Pehrson
2008-08-19 18:20:52 -05:00
parent 4198360421
commit dbed41fde1
48 changed files with 111 additions and 99 deletions

View File

@@ -119,7 +119,7 @@ png_default_flush(png_structp png_ptr)
png_FILE_p io_ptr;
if (png_ptr == NULL) return;
io_ptr = (png_FILE_p)CVT_PTR((png_ptr->io_ptr));
if (io_ptr != NULL)
if (io_ptr != NULL && fileno(io_ptr)!=-1)
fflush(io_ptr);
}
#endif