diff options
author | Kent Mein <mein@cs.umn.edu> | 2008-10-10 21:52:25 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2008-10-10 21:52:25 +0400 |
commit | 2f9e0ec15453261c7edde8b2fa487c4c17af65de (patch) | |
tree | 2239bad53cf2b67b4fede15b1796f98158b11d3f /source/blender/imbuf/intern/dynlibtiff.c | |
parent | d99fd92ffa04b4f6fc7a830b62cb764d9de3f05d (diff) |
This commit fixes bug: [#17770] Texture Plugins do not work. (on windows)
Thanks to Lguillaume for helping with this one.
Had to go back to bug: [#17631] PIL_dynlib_get_error_as_string() returns NULL, causes crash
and revert the fix and make some new updates.
function needs to return NULL so fix the functions that were assuming it
always returns a string.
Kent
Diffstat (limited to 'source/blender/imbuf/intern/dynlibtiff.c')
-rw-r--r-- | source/blender/imbuf/intern/dynlibtiff.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/dynlibtiff.c b/source/blender/imbuf/intern/dynlibtiff.c index b057e3f8bd2..b9186e482c5 100644 --- a/source/blender/imbuf/intern/dynlibtiff.c +++ b/source/blender/imbuf/intern/dynlibtiff.c @@ -106,8 +106,11 @@ void *libtiff_findsymbol(char *name) assert(libtiff != NULL); symbol = PIL_dynlib_find_symbol(libtiff, name); if (symbol == NULL) { - printf("libtiff_findsymbol: error %s\n", - PIL_dynlib_get_error_as_string(libtiff)); + char *err = PIL_dynlib_get_error_as_string(libtiff); + + if (err) printf("libtiff_findsymbol: error %s\n",err); + else printf("libtiff_findsymbol: error Unknown.\n"); + libtiff = NULL; G.have_libtiff = (0); return NULL; |