summaryrefslogtreecommitdiff
path: root/amiga/libs.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-11-09 00:25:29 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-11-09 00:25:29 +0000
commit455e4d3d21dd62b33aafe2b052600346f4351cd4 (patch)
treec85a90afae8e01f5334f12a52c7d2a4109b0ed0d /amiga/libs.c
parent433ef2c12a9b6e207343eb07326e8b7728cb5cac (diff)
downloadnetsurf-455e4d3d21dd62b33aafe2b052600346f4351cd4.tar.gz
netsurf-455e4d3d21dd62b33aafe2b052600346f4351cd4.tar.bz2
Don't bug the user if a non-essential library can't be opened - just log it.
Also log if the interface can't be obtained. If we've asked for the right library version, this should never fail.
Diffstat (limited to 'amiga/libs.c')
-rw-r--r--amiga/libs.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/amiga/libs.c b/amiga/libs.c
index 23b29fc42..3cc84cb68 100644
--- a/amiga/libs.c
+++ b/amiga/libs.c
@@ -26,9 +26,15 @@
LOG(("Opening %s v%d", LIB, LIBVER)); \
if((PREFIX##Base = OpenLibrary(LIB, LIBVER))) { \
I##PREFIX = (struct PREFIX##IFace *)GetInterface(PREFIX##Base, INTERFACE, INTVER, NULL); \
+ if(I##PREFIX == NULL) { \
+ LOG(("Failed to get %s interface v%d of %s", INTERFACE, INTVER, LIB)); \
+ } \
} else { \
- warn_user("CompError", LIB); \
- if(FAIL == true) return false; \
+ LOG(("Failed to open %s v%d", LIB, LIBVER)); \
+ if(FAIL == true) { \
+ warn_user("CompError", LIB); \
+ return false; \
+ } \
}
#define AMINS_LIB_CLOSE(PREFIX) \