[libpng16] Further revised documentation of png_get_error_ptr().

This commit is contained in:
Glenn Randers-Pehrson 2017-03-28 12:47:49 -05:00
parent 9b0170dd03
commit 92fcd25e9d
2 changed files with 4 additions and 4 deletions

View File

@ -4257,8 +4257,8 @@ parameters as follows:
void user_warning_fn(png_structp png_ptr, void user_warning_fn(png_structp png_ptr,
png_const_charp warning_msg); png_const_charp warning_msg);
Then, within your error_fn, you can retrieve the error_ptr if Then, within your user_error_fn or user_warning_fn, you can retrieve
you need it, by calling the error_ptr if you need it, by calling
png_voidp error_ptr = png_get_error_ptr(png_ptr); png_voidp error_ptr = png_get_error_ptr(png_ptr);

View File

@ -4767,8 +4767,8 @@ parameters as follows:
void user_warning_fn(png_structp png_ptr, void user_warning_fn(png_structp png_ptr,
png_const_charp warning_msg); png_const_charp warning_msg);
Then, within your error_fn, you can retrieve the error_ptr if Then, within your user_error_fn or user_warning_fn, you can retrieve
you need it, by calling the error_ptr if you need it, by calling
png_voidp error_ptr = png_get_error_ptr(png_ptr); png_voidp error_ptr = png_get_error_ptr(png_ptr);