summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-11-28 19:35:15 (GMT)
committer Chris Young <chris@unsatisfactorysoftware.co.uk>2016-11-28 19:35:15 (GMT)
commit54e31b65d14dd1e228106eae0c60ab42802a97ed (patch)
treea402692381011594e11f1239a5b7048bc5704bfa
parent4a93beb0393a8abddeb606cbb29a99bc1d73b67e (diff)
downloadnetsurf-54e31b65d14dd1e228106eae0c60ab42802a97ed.tar.gz
netsurf-54e31b65d14dd1e228106eae0c60ab42802a97ed.tar.bz2
Guard against crashing when opening the splash screen
Add extra logging for when things go wrong at this stage
-rw-r--r--frontends/amiga/gui.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/frontends/amiga/gui.c b/frontends/amiga/gui.c
index 6dca47a..7678505 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);