# HG changeset patch # User pontscho # Date 1042850581 0 # Node ID fc15b08926e0f2df98bf4874d1d019626787385a # Parent 5c7d926000185aaacf6feabda1faff530289740e 10l diff -r 5c7d92600018 -r fc15b08926e0 Gui/skin/font.c --- a/Gui/skin/font.c Sat Jan 18 00:22:18 2003 +0000 +++ b/Gui/skin/font.c Sat Jan 18 00:43:01 2003 +0000 @@ -176,6 +176,7 @@ item->Bitmap.Height=item->height=fntTextHeight( id,p ); item->Bitmap.Width=iw; item->Bitmap.ImageSize=item->height * iw * 4; + if ( !item->Bitmap.ImageSize ) return NULL; item->Bitmap.BPP=32; item->Bitmap.Image=malloc( item->Bitmap.ImageSize ); }