Avoid crash when no theme is present

svn path=/trunk/netsurf/; revision=12047
This commit is contained in:
Chris Young 2011-03-14 18:32:05 +00:00
parent 6a561dc6dd
commit 050eba408d

View File

@ -115,7 +115,12 @@ void ami_theme_init(void)
UnLock(lock);
}
messages_load(themefile);
lock = Lock(themefile,ACCESS_READ);
if(lock)
{
UnLock(lock);
messages_load(themefile);
}
}
void ami_theme_throbber_setup(void)