From 10fcb6b183dbb050f3c20eb1d17fa9ea72ded6e4 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Mon, 9 Nov 2009 06:17:56 +0000 Subject: [PATCH] fix segfault on remote targets where no sbs is loaded for the remote git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23580 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/statusbar-skinned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gui/statusbar-skinned.c b/apps/gui/statusbar-skinned.c index 2bef616524..436cc86ea1 100644 --- a/apps/gui/statusbar-skinned.c +++ b/apps/gui/statusbar-skinned.c @@ -114,7 +114,7 @@ inline bool sb_skin_get_state(enum screen_type screen) case STATUSBAR_TOP: case STATUSBAR_BOTTOM: case STATUSBAR_OFF: - return (VP_SB_ONSCREEN(screen)); + return (skinbars&VP_SB_ONSCREEN(screen)); } return false; /* Should never actually get here */ }