From 92fcd25e9d1c37ece7eb9ba58bca2e69cc3a7582 Mon Sep 17 00:00:00 2001 From: Glenn Randers-Pehrson Date: Tue, 28 Mar 2017 12:47:49 -0500 Subject: [PATCH] [libpng16] Further revised documentation of png_get_error_ptr(). --- libpng-manual.txt | 4 ++-- libpng.3 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libpng-manual.txt b/libpng-manual.txt index a8e704d7d..99508a545 100644 --- a/libpng-manual.txt +++ b/libpng-manual.txt @@ -4257,8 +4257,8 @@ parameters as follows: void user_warning_fn(png_structp png_ptr, png_const_charp warning_msg); -Then, within your error_fn, you can retrieve the error_ptr if -you need it, by calling +Then, within your user_error_fn or user_warning_fn, you can retrieve +the error_ptr if you need it, by calling png_voidp error_ptr = png_get_error_ptr(png_ptr); diff --git a/libpng.3 b/libpng.3 index ed3da7d58..88e170052 100644 --- a/libpng.3 +++ b/libpng.3 @@ -4767,8 +4767,8 @@ parameters as follows: void user_warning_fn(png_structp png_ptr, png_const_charp warning_msg); -Then, within your error_fn, you can retrieve the error_ptr if -you need it, by calling +Then, within your user_error_fn or user_warning_fn, you can retrieve +the error_ptr if you need it, by calling png_voidp error_ptr = png_get_error_ptr(png_ptr);