From 54e31b65d14dd1e228106eae0c60ab42802a97ed Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 28 Nov 2016 19:35:15 +0000 Subject: Guard against crashing when opening the splash screen Add extra logging for when things go wrong at this stage --- frontends/amiga/gui.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c index 6dca47a05..76785051f 100644 --- a/frontends/amiga/gui.c +++ b/frontends/amiga/gui.c @@ -5347,9 +5347,24 @@ Object *ami_gui_splash_open(void) LayoutEnd, EndWindow; + if(win_obj == NULL) { + LOG("Splash window object not created"); + return NULL; + } + LOG("Attempting to open splash window..."); win = RA_OpenWindow(win_obj); + if(win == NULL) { + LOG("Splash window did not open"); + return NULL; + } + + if(bm_obj == NULL) { + LOG("BitMap object not created"); + return NULL; + } + GetAttrs(bm_obj, IA_Top, &top, IA_Left, &left, TAG_DONE); -- cgit v1.2.3