mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
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)
This commit is contained in:
parent
2d5db505e7
commit
404b522119
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user