From 404b522119daf6d49687a304c9fa2693e8e8f81a Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 18 Aug 2016 00:20:08 +0100 Subject: Fail if the library interface doesn't open. This will happen when attempting to open old 68k libraries with no separate interface file, but may also occur when the interface name or version doesn't exist (although the library version number _should_ prevent that) --- frontends/amiga/libs.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'frontends/amiga') diff --git a/frontends/amiga/libs.c b/frontends/amiga/libs.c index 00facf957..d7271896f 100644 --- a/frontends/amiga/libs.c +++ b/frontends/amiga/libs.c @@ -61,6 +61,12 @@ I##PREFIX = (struct PREFIX##IFace *)GetInterface((struct Library *)PREFIX##Base, INTERFACE, INTVER, NULL); \ if(I##PREFIX == NULL) { \ LOG("Failed to get %s interface v%d of %s", INTERFACE, INTVER, LIB); \ + if(FAIL == true) { \ + STRPTR error = ASPrintf("Unable to open interface %s v%d\nof %s v%ld (fatal error)", INTERFACE, INTVER, LIB, LIBVER); \ + ami_misc_fatal_error(error); \ + FreeVec(error); \ + return false; \ + } \ } \ } else { \ LOG("Failed to open %s v%d", LIB, LIBVER); \ -- cgit v1.2.3