- icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) ;
- bitmap->CopyFromIcon( icon ) ;
-
- return bitmap->Ok() ;
+ if ( icon.LoadFile( name , wxBITMAP_TYPE_ICON_RESOURCE , desiredWidth , desiredHeight ) )
+ {
+ bitmap->CopyFromIcon( icon ) ;
+ return bitmap->Ok() ;
+ }
+ return false;